summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-04-23 10:54:14 +0300
committerDavid Sterba <dsterba@suse.com>2018-05-28 18:07:28 +0200
commit76f32e240ee6a3c1903ce8f1e934b43f2971bffc (patch)
tree2a741d90374a7b04c8937c5589987104ae7bfeae /fs/btrfs/inode.c
parent82b3e53b8da19b25ef36b68316374df47f8fa268 (diff)
downloadlinux-stable-76f32e240ee6a3c1903ce8f1e934b43f2971bffc.tar.gz
linux-stable-76f32e240ee6a3c1903ce8f1e934b43f2971bffc.tar.bz2
linux-stable-76f32e240ee6a3c1903ce8f1e934b43f2971bffc.zip
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: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index c2bb7c8e1fda..c6ff72a1ff10 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -10255,7 +10255,7 @@ out:
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;