提交 b8582eea 编写于 作者: N Nikolay Borisov 提交者: David Sterba

btrfs: Remove fs_info argument from lookup_tree_block_ref

This function is always called with a valid transaction handle from
where the fs_info can be referenced. No functional changes.
Signed-off-by: NNikolay Borisov <nborisov@suse.com>
Reviewed-by: NQu Wenruo <wqu@suse.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 61a18f1c
...@@ -1487,12 +1487,11 @@ static noinline u32 extent_data_ref_count(struct btrfs_path *path, ...@@ -1487,12 +1487,11 @@ static noinline u32 extent_data_ref_count(struct btrfs_path *path,
} }
static noinline int lookup_tree_block_ref(struct btrfs_trans_handle *trans, static noinline int lookup_tree_block_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 root_objectid)
{ {
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;
int ret; int ret;
...@@ -1878,8 +1877,8 @@ static int lookup_extent_backref(struct btrfs_trans_handle *trans, ...@@ -1878,8 +1877,8 @@ static int lookup_extent_backref(struct btrfs_trans_handle *trans,
*ref_ret = NULL; *ref_ret = NULL;
if (owner < BTRFS_FIRST_FREE_OBJECTID) { if (owner < BTRFS_FIRST_FREE_OBJECTID) {
ret = lookup_tree_block_ref(trans, fs_info, path, bytenr, ret = lookup_tree_block_ref(trans, path, bytenr, parent,
parent, root_objectid); root_objectid);
} else { } else {
ret = lookup_extent_data_ref(trans, fs_info, path, bytenr, ret = lookup_extent_data_ref(trans, fs_info, path, bytenr,
parent, root_objectid, owner, parent, root_objectid, owner,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册