summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorNikolay Borisov2018-06-20 14:48:50 +0200
committerDavid Sterba2018-08-06 13:12:33 +0200
commitb8582eeabb727f24ad0f128141558e4eb0928aec (patch)
tree33ae9d215d1da3d20748ae9729461cf460c7eb1e /fs/btrfs/extent-tree.c
parentbtrfs: Remove fs_info argument from update_inline_extent_backref (diff)
downloadkernel-qcow2-linux-b8582eeabb727f24ad0f128141558e4eb0928aec.tar.gz
kernel-qcow2-linux-b8582eeabb727f24ad0f128141558e4eb0928aec.tar.xz
kernel-qcow2-linux-b8582eeabb727f24ad0f128141558e4eb0928aec.zip
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: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 102911286497..85e1b54bc2ea 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -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,
- struct btrfs_fs_info *fs_info,
struct btrfs_path *path,
u64 bytenr, u64 parent,
u64 root_objectid)
{
- struct btrfs_root *root = fs_info->extent_root;
+ struct btrfs_root *root = trans->fs_info->extent_root;
struct btrfs_key key;
int ret;
@@ -1878,8 +1877,8 @@ static int lookup_extent_backref(struct btrfs_trans_handle *trans,
*ref_ret = NULL;
if (owner < BTRFS_FIRST_FREE_OBJECTID) {
- ret = lookup_tree_block_ref(trans, fs_info, path, bytenr,
- parent, root_objectid);
+ ret = lookup_tree_block_ref(trans, path, bytenr, parent,
+ root_objectid);
} else {
ret = lookup_extent_data_ref(trans, fs_info, path, bytenr,
parent, root_objectid, owner,