Commit 8087c193 authored by David Sterba's avatar David Sterba

btrfs: get fs_info from eb in __push_leaf_left

We can read fs_info from extent buffer and can drop it from the
parameters.
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent f72f0010
...@@ -3819,12 +3819,12 @@ static int push_leaf_right(struct btrfs_trans_handle *trans, struct btrfs_root ...@@ -3819,12 +3819,12 @@ static int push_leaf_right(struct btrfs_trans_handle *trans, struct btrfs_root
* item at 'max_slot' won't be touched. Use (u32)-1 to make us do all the * item at 'max_slot' won't be touched. Use (u32)-1 to make us do all the
* items * items
*/ */
static noinline int __push_leaf_left(struct btrfs_fs_info *fs_info, static noinline int __push_leaf_left(struct btrfs_path *path, int data_size,
struct btrfs_path *path, int data_size,
int empty, struct extent_buffer *left, int empty, struct extent_buffer *left,
int free_space, u32 right_nritems, int free_space, u32 right_nritems,
u32 max_slot) u32 max_slot)
{ {
struct btrfs_fs_info *fs_info = left->fs_info;
struct btrfs_disk_key disk_key; struct btrfs_disk_key disk_key;
struct extent_buffer *right = path->nodes[0]; struct extent_buffer *right = path->nodes[0];
int i; int i;
...@@ -3976,7 +3976,6 @@ static int push_leaf_left(struct btrfs_trans_handle *trans, struct btrfs_root ...@@ -3976,7 +3976,6 @@ static int push_leaf_left(struct btrfs_trans_handle *trans, struct btrfs_root
*root, struct btrfs_path *path, int min_data_size, *root, struct btrfs_path *path, int min_data_size,
int data_size, int empty, u32 max_slot) int data_size, int empty, u32 max_slot)
{ {
struct btrfs_fs_info *fs_info = root->fs_info;
struct extent_buffer *right = path->nodes[0]; struct extent_buffer *right = path->nodes[0];
struct extent_buffer *left; struct extent_buffer *left;
int slot; int slot;
...@@ -4029,7 +4028,7 @@ static int push_leaf_left(struct btrfs_trans_handle *trans, struct btrfs_root ...@@ -4029,7 +4028,7 @@ static int push_leaf_left(struct btrfs_trans_handle *trans, struct btrfs_root
goto out; goto out;
} }
return __push_leaf_left(fs_info, path, min_data_size, return __push_leaf_left(path, min_data_size,
empty, left, free_space, right_nritems, empty, left, free_space, right_nritems,
max_slot); max_slot);
out: out:
......
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