summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorLu Fengqi2018-08-04 15:10:57 +0200
committerDavid Sterba2018-10-15 17:23:25 +0200
commit684572df940181b070760bf027a6ded6b7b55c3d (patch)
tree2c2313d4bcee02cbf501a521d83bbb177e2fde23 /fs/btrfs/ctree.h
parentbtrfs: switch update_size to bool in btrfs_block_rsv_migrate and btrfs_rsv_ad... (diff)
downloadkernel-qcow2-linux-684572df940181b070760bf027a6ded6b7b55c3d.tar.gz
kernel-qcow2-linux-684572df940181b070760bf027a6ded6b7b55c3d.tar.xz
kernel-qcow2-linux-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/ctree.h')
-rw-r--r--fs/btrfs/ctree.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 3dd4d0cb0c7e..df260a9867be 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -3021,8 +3021,7 @@ int btrfs_uuid_tree_iterate(struct btrfs_fs_info *fs_info,
/* dir-item.c */
int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir,
const char *name, int name_len);
-int btrfs_insert_dir_item(struct btrfs_trans_handle *trans,
- struct btrfs_root *root, const char *name,
+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);
struct btrfs_dir_item *btrfs_lookup_dir_item(struct btrfs_trans_handle *trans,