diff options
author | Lu Fengqi <lufq.fnst@cn.fujitsu.com> | 2018-08-04 16:10:57 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-10-15 18:23:25 +0300 |
commit | 684572df940181b070760bf027a6ded6b7b55c3d (patch) | |
tree | 2c2313d4bcee02cbf501a521d83bbb177e2fde23 /fs/btrfs/transaction.c | |
parent | 3a58417486ca99a3bfef40e309f38adb45a5171d (diff) | |
download | linux-684572df940181b070760bf027a6ded6b7b55c3d.tar.xz |
btrfs: Remove root parameter from btrfs_insert_dir_item
All callers pass the root tree of dir, we can push that down to the
function itself.
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 3b84f5015029..bd784d8f5215 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -1613,10 +1613,9 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, if (ret < 0) goto fail; - ret = btrfs_insert_dir_item(trans, parent_root, - dentry->d_name.name, dentry->d_name.len, - BTRFS_I(parent_inode), &key, - BTRFS_FT_DIR, index); + ret = btrfs_insert_dir_item(trans, dentry->d_name.name, + dentry->d_name.len, BTRFS_I(parent_inode), + &key, BTRFS_FT_DIR, index); /* We have check then name at the beginning, so it is impossible. */ BUG_ON(ret == -EEXIST || ret == -EOVERFLOW); if (ret) { |