From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Mahoney Subject: [patch 91/99] btrfs: btrfs_run_ordered_operations should return void Date: Wed, 23 Nov 2011 19:37:04 -0500 Message-ID: <20111124004230.351304172@suse.com> References: <20111124003533.395674389@suse.com> To: Btrfs List Return-path: List-ID: btrfs_run_ordered_operations has no error conditions and should return void. Signed-off-by: Jeff Mahoney --- fs/btrfs/ordered-data.c | 4 +--- fs/btrfs/ordered-data.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) --- a/fs/btrfs/ordered-data.c +++ b/fs/btrfs/ordered-data.c @@ -526,7 +526,7 @@ void btrfs_wait_ordered_extents(struct b * extra check to make sure the ordered operation list really is empty * before we return */ -int btrfs_run_ordered_operations(struct btrfs_root *root, int wait) +void btrfs_run_ordered_operations(struct btrfs_root *root, int wait) { struct btrfs_inode *btrfs_inode; struct inode *inode; @@ -574,8 +574,6 @@ again: spin_unlock(&root->fs_info->ordered_extent_lock); mutex_unlock(&root->fs_info->ordered_operations_mutex); - - return 0; } /* --- a/fs/btrfs/ordered-data.h +++ b/fs/btrfs/ordered-data.h @@ -170,7 +170,7 @@ struct btrfs_ordered_extent *btrfs_looku int btrfs_ordered_update_i_size(struct inode *inode, u64 offset, struct btrfs_ordered_extent *ordered); int btrfs_find_ordered_sum(struct inode *inode, u64 offset, u64 disk_bytenr, u32 *sum); -int btrfs_run_ordered_operations(struct btrfs_root *root, int wait); +void btrfs_run_ordered_operations(struct btrfs_root *root, int wait); int btrfs_add_ordered_operation(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode);