]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix off-by-one error of the same page check in btrfs_punch_hole()
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 5 Dec 2012 10:53:45 +0000 (10:53 +0000)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:19 +0000 (20:46 -0500)
commit4499b675df45c31868f799f22f729417978b9a6b
tree528eabdcc7fe59c50ac8dba4347851f05ff83b2d
parenta1c1378b8deea2d65e77c509fbadd338df7d2f5e
Btrfs: fix off-by-one error of the same page check in btrfs_punch_hole()

(start + len) is the start of the adjacent extent, not the end of the current
extent, so we should not use it to check the hole is on the same page or not.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/file.c