Skip to content
Commit 6347b3c4 authored by Miao Xie's avatar Miao Xie Committed by Chris Mason
Browse files

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: default avatarMiao Xie <miaox@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <chris.mason@fusionio.com>
parent 4b5829a8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment