diff options
author | Lu Fengqi <lufq.fnst@cn.fujitsu.com> | 2018-08-04 21:10:57 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-10-15 17:23:25 +0200 |
commit | 684572df940181b070760bf027a6ded6b7b55c3d (patch) | |
tree | 2c2313d4bcee02cbf501a521d83bbb177e2fde23 /fs/btrfs/dir-item.c | |
parent | 3a58417486ca99a3bfef40e309f38adb45a5171d (diff) | |
download | linux-rpi-684572df940181b070760bf027a6ded6b7b55c3d.tar.gz linux-rpi-684572df940181b070760bf027a6ded6b7b55c3d.tar.bz2 linux-rpi-684572df940181b070760bf027a6ded6b7b55c3d.zip |
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/dir-item.c')
-rw-r--r-- | fs/btrfs/dir-item.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/dir-item.c b/fs/btrfs/dir-item.c index a678b07fcf01..8de74d835dba 100644 --- a/fs/btrfs/dir-item.c +++ b/fs/btrfs/dir-item.c @@ -105,13 +105,13 @@ int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans, * to use for the second index (if one is created). * Will return 0 or -ENOMEM */ -int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root - *root, const char *name, int name_len, - struct btrfs_inode *dir, struct btrfs_key *location, - u8 type, u64 index) +int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, const char *name, + int name_len, struct btrfs_inode *dir, + struct btrfs_key *location, u8 type, u64 index) { int ret = 0; int ret2 = 0; + struct btrfs_root *root = dir->root; struct btrfs_path *path; struct btrfs_dir_item *dir_item; struct extent_buffer *leaf; |