summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/root-tree.c
diff options
context:
space:
mode:
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>2018-07-31 23:32:28 -0400
committerDavid Sterba <dsterba@suse.com>2018-08-06 07:13:00 -0400
commit3ee1c5530e649182e602eb2f81193289c4d2e655 (patch)
tree16cd037da6d7f124db1ba19c5096d200ed7bba91 /fs/btrfs/root-tree.c
parentab9ce7d42bf66f0750a4ca4a228a2db238376afb (diff)
btrfs: Remove fs_info from btrfs_del_root_ref
It can be referenced from the passed transaction handle. Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/root-tree.c')
-rw-r--r--fs/btrfs/root-tree.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c
index f7c14c454f91..52fa133ab53c 100644
--- a/fs/btrfs/root-tree.c
+++ b/fs/btrfs/root-tree.c
@@ -341,13 +341,12 @@ out:
341 return ret; 341 return ret;
342} 342}
343 343
344int btrfs_del_root_ref(struct btrfs_trans_handle *trans, 344int btrfs_del_root_ref(struct btrfs_trans_handle *trans, u64 root_id,
345 struct btrfs_fs_info *fs_info, 345 u64 ref_id, u64 dirid, u64 *sequence, const char *name,
346 u64 root_id, u64 ref_id, u64 dirid, u64 *sequence, 346 int name_len)
347 const char *name, int name_len)
348 347
349{ 348{
350 struct btrfs_root *tree_root = fs_info->tree_root; 349 struct btrfs_root *tree_root = trans->fs_info->tree_root;
351 struct btrfs_path *path; 350 struct btrfs_path *path;
352 struct btrfs_root_ref *ref; 351 struct btrfs_root_ref *ref;
353 struct extent_buffer *leaf; 352 struct extent_buffer *leaf;