]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
btrfs: Remove delayed_iput parameter from btrfs_start_delalloc_inodes
authorNikolay Borisov <nborisov@suse.com>
Mon, 23 Apr 2018 07:54:14 +0000 (10:54 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:28 +0000 (18:07 +0200)
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: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/inode.c
fs/btrfs/ioctl.c

index 0d15d98a964ad87fa37c8fb1d22e9091ecaf0940..0dbb5a19d97744c0887705e0ca3a07ce55e55be8 100644 (file)
@@ -3204,7 +3204,7 @@ int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans,
                               struct inode *inode, u64 new_size,
                               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_set_extent_delalloc(struct inode *inode, u64 start, u64 end,
                              unsigned int extra_bits,
index c2bb7c8e1fda52330bdef506d33db1c152f9bb99..c6ff72a1ff10e9044b50a4388e6b04db9831d371 100644 (file)
@@ -10255,7 +10255,7 @@ static int __start_delalloc_inodes(struct btrfs_root *root, int delay_iput,
        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;
        int ret;
@@ -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))
                return -EROFS;
 
-       ret = __start_delalloc_inodes(root, delay_iput, -1);
+       ret = __start_delalloc_inodes(root, 0, -1);
        if (ret > 0)
                ret = 0;
        return ret;
index 67db5f6b04763732f4c8030d937638c753e70721..b708f12292b6b9fb4ddca0ef552d1cd3421daf1f 100644 (file)
@@ -640,7 +640,7 @@ static int create_snapshot(struct btrfs_root *root, struct inode *dir,
        wait_event(root->subv_writers->wait,
                   percpu_counter_sum(&root->subv_writers->counter) == 0);
 
-       ret = btrfs_start_delalloc_inodes(root, 0);
+       ret = btrfs_start_delalloc_inodes(root);
        if (ret)
                goto dec_and_free;