Commit 94f94ad9 authored by David Sterba's avatar David Sterba

btrfs: get fs_info from trans in copy_for_split

We can read fs_info from the transaction and can drop it from the
parameters.
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 6ad3cf6d
...@@ -4044,12 +4044,12 @@ static int push_leaf_left(struct btrfs_trans_handle *trans, struct btrfs_root ...@@ -4044,12 +4044,12 @@ static int push_leaf_left(struct btrfs_trans_handle *trans, struct btrfs_root
* available for the resulting leaf level of the path. * available for the resulting leaf level of the path.
*/ */
static noinline void copy_for_split(struct btrfs_trans_handle *trans, static noinline void copy_for_split(struct btrfs_trans_handle *trans,
struct btrfs_fs_info *fs_info,
struct btrfs_path *path, struct btrfs_path *path,
struct extent_buffer *l, struct extent_buffer *l,
struct extent_buffer *right, struct extent_buffer *right,
int slot, int mid, int nritems) int slot, int mid, int nritems)
{ {
struct btrfs_fs_info *fs_info = trans->fs_info;
int data_copy_size; int data_copy_size;
int rt_data_off; int rt_data_off;
int i; int i;
...@@ -4316,7 +4316,7 @@ static noinline int split_leaf(struct btrfs_trans_handle *trans, ...@@ -4316,7 +4316,7 @@ static noinline int split_leaf(struct btrfs_trans_handle *trans,
return ret; return ret;
} }
copy_for_split(trans, fs_info, path, l, right, slot, mid, nritems); copy_for_split(trans, path, l, right, slot, mid, nritems);
if (split == 2) { if (split == 2) {
BUG_ON(num_doubles != 0); BUG_ON(num_doubles != 0);
......
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