]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix up seek_hole/seek_data handling
authorJosef Bacik <jbacik@fusionio.com>
Fri, 18 Oct 2013 15:44:46 +0000 (11:44 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 02:58:56 +0000 (21:58 -0500)
commited9b50ad9b98dd1d7bc9ea0dbd32a9122a6285f4
tree491f6ffb135f7906428371cb9d064278ec5c8f48
parent8e99580a16c36be66f0cae60e6921662385ae847
Btrfs: fix up seek_hole/seek_data handling

Whoever wrote this was braindead.  Also it doesn't work right if you have
VACANCY's since we assumed you would only have that at the end of the file,
which won't be the case in the near future.  I tested this with generic/285 and
generic/286 as well as the btrfs tests that use fssum since it uses
seek_hole/seek_data to verify things are ok.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/file.c