btrfs: Remove fs_info argument from lookup_extent_data_ref
This function is always called with a valid transaction handle from where fs_info can be referenced. No functional changes. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
committed by
David Sterba
parent
b8582eeabb
commit
bd1d53ef35
@@ -1216,13 +1216,12 @@ static int match_extent_data_ref(struct extent_buffer *leaf,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static noinline int lookup_extent_data_ref(struct btrfs_trans_handle *trans,
|
static noinline int lookup_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 root_objectid,
|
||||||
u64 owner, u64 offset)
|
u64 owner, u64 offset)
|
||||||
{
|
{
|
||||||
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 btrfs_extent_data_ref *ref;
|
struct btrfs_extent_data_ref *ref;
|
||||||
struct extent_buffer *leaf;
|
struct extent_buffer *leaf;
|
||||||
@@ -1880,9 +1879,8 @@ static int lookup_extent_backref(struct btrfs_trans_handle *trans,
|
|||||||
ret = lookup_tree_block_ref(trans, path, bytenr, parent,
|
ret = lookup_tree_block_ref(trans, path, bytenr, parent,
|
||||||
root_objectid);
|
root_objectid);
|
||||||
} else {
|
} else {
|
||||||
ret = lookup_extent_data_ref(trans, fs_info, path, bytenr,
|
ret = lookup_extent_data_ref(trans, path, bytenr, parent,
|
||||||
parent, root_objectid, owner,
|
root_objectid, owner, offset);
|
||||||
offset);
|
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user