]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: return an error from btrfs_wait_ordered_range
authorJosef Bacik <jbacik@fusionio.com>
Fri, 25 Oct 2013 20:13:35 +0000 (16:13 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:07:35 +0000 (22:07 -0500)
commit1b6d1067050fcc93ef757787f8fc07ece1613c6c
tree61c819e8541c69043a5d74182ac0f8d0060207e7
parent88324a96bd151ee8330f2e48642f2cf8262b75c5
Btrfs: return an error from btrfs_wait_ordered_range

I noticed that if the free space cache has an error writing out it's data it
won't actually error out, it will just carry on.  This is because it doesn't
check the return value of btrfs_wait_ordered_range, which didn't actually return
anything.  So fix this in order to keep us from making free space cache look
valid when it really isnt.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/file.c
fs/btrfs/free-space-cache.c
fs/btrfs/inode.c
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h
fs/btrfs/relocation.c