summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-20 14:42:33 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:42 +0200
commit94f94ad9725550bc33e5561b55fc4506228b1d7b (patch)
tree29dff85b0e1f07436a92891bab6e8e7787e08df5 /fs/btrfs/ctree.c
parentbtrfs: get fs_info from trans in insert_ptr (diff)
downloadlinux-94f94ad9725550bc33e5561b55fc4506228b1d7b.tar.xz
linux-94f94ad9725550bc33e5561b55fc4506228b1d7b.zip
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: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index f779104ab199..f52eb952597b 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -4044,12 +4044,12 @@ out:
* available for the resulting leaf level of the path.
*/
static noinline void copy_for_split(struct btrfs_trans_handle *trans,
- struct btrfs_fs_info *fs_info,
struct btrfs_path *path,
struct extent_buffer *l,
struct extent_buffer *right,
int slot, int mid, int nritems)
{
+ struct btrfs_fs_info *fs_info = trans->fs_info;
int data_copy_size;
int rt_data_off;
int i;
@@ -4316,7 +4316,7 @@ again:
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) {
BUG_ON(num_doubles != 0);