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)
commit0ef8b726075aa6931ddf1c16f5bae043eef184f9
tree61c819e8541c69043a5d74182ac0f8d0060207e7
parented2590953bd06b892f0411fc94e19175d32f197a
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