diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-10-25 16:13:35 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-11 22:07:35 -0500 |
commit | 0ef8b726075aa6931ddf1c16f5bae043eef184f9 (patch) | |
tree | 61c819e8541c69043a5d74182ac0f8d0060207e7 /fs/btrfs/ordered-data.h | |
parent | ed2590953bd06b892f0411fc94e19175d32f197a (diff) | |
download | linux-0ef8b726075aa6931ddf1c16f5bae043eef184f9.tar.gz linux-0ef8b726075aa6931ddf1c16f5bae043eef184f9.tar.bz2 linux-0ef8b726075aa6931ddf1c16f5bae043eef184f9.zip |
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>
Diffstat (limited to 'fs/btrfs/ordered-data.h')
-rw-r--r-- | fs/btrfs/ordered-data.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ordered-data.h b/fs/btrfs/ordered-data.h index 0c0b35612d7a..3982db1c1b36 100644 --- a/fs/btrfs/ordered-data.h +++ b/fs/btrfs/ordered-data.h @@ -180,7 +180,7 @@ struct btrfs_ordered_extent *btrfs_lookup_ordered_extent(struct inode *inode, u64 file_offset); void btrfs_start_ordered_extent(struct inode *inode, struct btrfs_ordered_extent *entry, int wait); -void btrfs_wait_ordered_range(struct inode *inode, u64 start, u64 len); +int btrfs_wait_ordered_range(struct inode *inode, u64 start, u64 len); struct btrfs_ordered_extent * btrfs_lookup_first_ordered_extent(struct inode * inode, u64 file_offset); struct btrfs_ordered_extent *btrfs_lookup_ordered_range(struct inode *inode, |