diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-05-10 15:44:46 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-28 18:07:34 +0200 |
commit | f3f7277995675d632a3e42144e1a4c9b0cc58d44 (patch) | |
tree | 8e4bb321c7299a1ad58eae3ec44d62d41fa2daa4 /fs/btrfs/free-space-tree.c | |
parent | 4457c1c702fa1cb2f032bae6dfa0dd2f84ff2b5c (diff) | |
download | linux-stable-f3f7277995675d632a3e42144e1a4c9b0cc58d44.tar.gz linux-stable-f3f7277995675d632a3e42144e1a4c9b0cc58d44.tar.bz2 linux-stable-f3f7277995675d632a3e42144e1a4c9b0cc58d44.zip |
btrfs: Remove fs_info parameter from remove_block_group_free_space
This function always takes a trans handle which contains a reference to
the fs_info. Use that and remove the extra argument.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/free-space-tree.c')
-rw-r--r-- | fs/btrfs/free-space-tree.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/free-space-tree.c b/fs/btrfs/free-space-tree.c index ecf07fdcf2d8..4a7bef5b8de3 100644 --- a/fs/btrfs/free-space-tree.c +++ b/fs/btrfs/free-space-tree.c @@ -1316,10 +1316,9 @@ out: } int remove_block_group_free_space(struct btrfs_trans_handle *trans, - struct btrfs_fs_info *fs_info, struct btrfs_block_group_cache *block_group) { - struct btrfs_root *root = fs_info->free_space_root; + struct btrfs_root *root = trans->fs_info->free_space_root; struct btrfs_path *path; struct btrfs_key key, found_key; struct extent_buffer *leaf; @@ -1327,7 +1326,7 @@ int remove_block_group_free_space(struct btrfs_trans_handle *trans, int done = 0, nr; int ret; - if (!btrfs_fs_compat_ro(fs_info, FREE_SPACE_TREE)) + if (!btrfs_fs_compat_ro(trans->fs_info, FREE_SPACE_TREE)) return 0; if (block_group->needs_free_space) { |