Commit 62b895af authored by Nikolay Borisov's avatar Nikolay Borisov Committed by David Sterba

btrfs: Remove fs_info from insert_extent_data_ref

This function is always called with a valid transaction handle from
where fs_info can be referenced. So remove the redundant argument.
No functional changes.
Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
Reviewed-by: default avatarQu Wenruo <wqu@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 10728404
...@@ -1304,13 +1304,12 @@ static noinline int lookup_extent_data_ref(struct btrfs_trans_handle *trans, ...@@ -1304,13 +1304,12 @@ static noinline int lookup_extent_data_ref(struct btrfs_trans_handle *trans,
} }
static noinline int insert_extent_data_ref(struct btrfs_trans_handle *trans, static noinline int insert_extent_data_ref(struct btrfs_trans_handle *trans,
struct btrfs_fs_info *fs_info,
struct btrfs_path *path, struct btrfs_path *path,
u64 bytenr, u64 parent, u64 bytenr, u64 parent,
u64 root_objectid, u64 owner, u64 root_objectid, u64 owner,
u64 offset, int refs_to_add) u64 offset, int refs_to_add)
{ {
struct btrfs_root *root = fs_info->extent_root; struct btrfs_root *root = trans->fs_info->extent_root;
struct btrfs_key key; struct btrfs_key key;
struct extent_buffer *leaf; struct extent_buffer *leaf;
u32 size; u32 size;
...@@ -2002,9 +2001,9 @@ static int insert_extent_backref(struct btrfs_trans_handle *trans, ...@@ -2002,9 +2001,9 @@ static int insert_extent_backref(struct btrfs_trans_handle *trans,
ret = insert_tree_block_ref(trans, path, bytenr, parent, ret = insert_tree_block_ref(trans, path, bytenr, parent,
root_objectid); root_objectid);
} else { } else {
ret = insert_extent_data_ref(trans, fs_info, path, bytenr, ret = insert_extent_data_ref(trans, path, bytenr, parent,
parent, root_objectid, root_objectid, owner, offset,
owner, offset, refs_to_add); refs_to_add);
} }
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment