diff options
author | David Sterba <dsterba@suse.com> | 2018-03-05 15:22:30 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-31 01:26:54 +0200 |
commit | 95b757c164820d7c7262c1e546b47d79dd256c96 (patch) | |
tree | bd6d9665134f44d98d024f11858a9acbf3eb60b7 /fs/btrfs/ctree.c | |
parent | db7279a20b0982587729cb2a23780e42d536721b (diff) | |
download | linux-95b757c164820d7c7262c1e546b47d79dd256c96.tar.bz2 |
btrfs: drop fs_info parameter from tree_mod_log_free_eb
It's provided by the extent_buffer.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index b3c4305b5ecd..217e672bafb4 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -654,12 +654,10 @@ __tree_mod_log_free_eb(struct btrfs_fs_info *fs_info, return 0; } -static noinline int -tree_mod_log_insert_root(struct btrfs_fs_info *fs_info, - struct extent_buffer *old_root, - struct extent_buffer *new_root, - int log_removal) +static noinline int tree_mod_log_insert_root(struct extent_buffer *old_root, + struct extent_buffer *new_root, int log_removal) { + struct btrfs_fs_info *fs_info = old_root->fs_info; struct tree_mod_elem *tm = NULL; struct tree_mod_elem **tm_list = NULL; int nritems = 0; @@ -932,8 +930,7 @@ tree_mod_log_set_root_pointer(struct btrfs_root *root, int log_removal) { int ret; - ret = tree_mod_log_insert_root(root->fs_info, root->node, - new_root_node, log_removal); + ret = tree_mod_log_insert_root(root->node, new_root_node, log_removal); BUG_ON(ret < 0); } |