浏览代码

Merge tag 'gfs2-4.16.rc4.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2

Pull gfs2 fix from Bob Peterson:
 "An additional patch from Andreas Gruenbacher that fixes another
  unfortunate GFS2 regression"

* tag 'gfs2-4.16.rc4.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2:
  gfs2: Fixes to "Implement iomap for block_map" (2)
Linus Torvalds 7 年之前
父节点
当前提交
ea9b5ee310
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      fs/gfs2/bmap.c

+ 0 - 3
fs/gfs2/bmap.c

@@ -807,9 +807,6 @@ do_alloc:
 			iomap->length = hole_size(inode, lblock, &mp);
 			iomap->length = hole_size(inode, lblock, &mp);
 		else
 		else
 			iomap->length = size - pos;
 			iomap->length = size - pos;
-	} else {
-		if (height <= ip->i_height)
-			iomap->length = hole_size(inode, lblock, &mp);
 	}
 	}
 	goto out_release;
 	goto out_release;
 }
 }