]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix ordered extent check in btrfs_punch_hole
authorFilipe David Borba Manana <fdmanana@gmail.com>
Tue, 19 Nov 2013 16:19:24 +0000 (16:19 +0000)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:19:42 +0000 (13:19 -0800)
commit01c616ae93ebbac3519d22b4aba21c52f879cbdd
tree51dfdf6d48ecbe4c134bf26474f273954fb074b0
parent40db858426aa4b63c7031110acf396ea61a15454
Btrfs: fix ordered extent check in btrfs_punch_hole

If the ordered extent's last byte was 1 less than our region's
start byte, we would unnecessarily wait for the completion of
that ordered extent, because it doesn't intersect our target
range.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/file.c