Commit 76f32e24 authored by Nikolay Borisov's avatar Nikolay Borisov Committed by David Sterba

btrfs: Remove delayed_iput parameter from btrfs_start_delalloc_inodes

It's always set to 0, so just remove it and collapse the constant value
to the only function we are passing it.
Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
Reviewed-by: default avatarQu Wenruo <wqu@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 82b3e53b
...@@ -3204,7 +3204,7 @@ int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, ...@@ -3204,7 +3204,7 @@ int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans,
struct inode *inode, u64 new_size, struct inode *inode, u64 new_size,
u32 min_type); u32 min_type);
int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput); int btrfs_start_delalloc_inodes(struct btrfs_root *root);
int btrfs_start_delalloc_roots(struct btrfs_fs_info *fs_info, int nr); int btrfs_start_delalloc_roots(struct btrfs_fs_info *fs_info, int nr);
int btrfs_set_extent_delalloc(struct inode *inode, u64 start, u64 end, int btrfs_set_extent_delalloc(struct inode *inode, u64 start, u64 end,
unsigned int extra_bits, unsigned int extra_bits,
......
...@@ -10255,7 +10255,7 @@ static int __start_delalloc_inodes(struct btrfs_root *root, int delay_iput, ...@@ -10255,7 +10255,7 @@ static int __start_delalloc_inodes(struct btrfs_root *root, int delay_iput,
return ret; return ret;
} }
int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput) int btrfs_start_delalloc_inodes(struct btrfs_root *root)
{ {
struct btrfs_fs_info *fs_info = root->fs_info; struct btrfs_fs_info *fs_info = root->fs_info;
int ret; int ret;
...@@ -10263,7 +10263,7 @@ int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput) ...@@ -10263,7 +10263,7 @@ int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput)
if (test_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state)) if (test_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state))
return -EROFS; return -EROFS;
ret = __start_delalloc_inodes(root, delay_iput, -1); ret = __start_delalloc_inodes(root, 0, -1);
if (ret > 0) if (ret > 0)
ret = 0; ret = 0;
return ret; return ret;
......
...@@ -640,7 +640,7 @@ static int create_snapshot(struct btrfs_root *root, struct inode *dir, ...@@ -640,7 +640,7 @@ static int create_snapshot(struct btrfs_root *root, struct inode *dir,
wait_event(root->subv_writers->wait, wait_event(root->subv_writers->wait,
percpu_counter_sum(&root->subv_writers->counter) == 0); percpu_counter_sum(&root->subv_writers->counter) == 0);
ret = btrfs_start_delalloc_inodes(root, 0); ret = btrfs_start_delalloc_inodes(root);
if (ret) if (ret)
goto dec_and_free; goto dec_and_free;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment