diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-06-20 14:48:44 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 13:12:32 +0200 |
commit | 62b895af4022017c11855087801b0575a442ccc6 (patch) | |
tree | c312050fd886c3c0d27d97a916c0177b972aa4c3 /fs/btrfs/extent-tree.c | |
parent | btrfs: Remove fs_info from insert_tree_block_ref (diff) | |
download | linux-62b895af4022017c11855087801b0575a442ccc6.tar.xz linux-62b895af4022017c11855087801b0575a442ccc6.zip |
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: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '')
-rw-r--r-- | fs/btrfs/extent-tree.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 082e9f1c1f1a..bb89522c0de6 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -1304,13 +1304,12 @@ fail: } static noinline int insert_extent_data_ref(struct btrfs_trans_handle *trans, - struct btrfs_fs_info *fs_info, struct btrfs_path *path, u64 bytenr, u64 parent, u64 root_objectid, u64 owner, 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 extent_buffer *leaf; u32 size; @@ -2002,9 +2001,9 @@ static int insert_extent_backref(struct btrfs_trans_handle *trans, ret = insert_tree_block_ref(trans, path, bytenr, parent, root_objectid); } else { - ret = insert_extent_data_ref(trans, fs_info, path, bytenr, - parent, root_objectid, - owner, offset, refs_to_add); + ret = insert_extent_data_ref(trans, path, bytenr, parent, + root_objectid, owner, offset, + refs_to_add); } return ret; } |