Commit 690d7682 authored by Nikolay Borisov's avatar Nikolay Borisov Committed by David Sterba

btrfs: Remove fs_info argument from update_free_space_extent_count

This function already takes a transaction handle which has a reference
to the fs_info. So use that and remove the extra argument.
Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 5296c2bf
...@@ -449,7 +449,6 @@ int convert_free_space_to_extents(struct btrfs_trans_handle *trans, ...@@ -449,7 +449,6 @@ int convert_free_space_to_extents(struct btrfs_trans_handle *trans,
} }
static int update_free_space_extent_count(struct btrfs_trans_handle *trans, static int update_free_space_extent_count(struct btrfs_trans_handle *trans,
struct btrfs_fs_info *fs_info,
struct btrfs_block_group_cache *block_group, struct btrfs_block_group_cache *block_group,
struct btrfs_path *path, struct btrfs_path *path,
int new_extents) int new_extents)
...@@ -462,7 +461,8 @@ static int update_free_space_extent_count(struct btrfs_trans_handle *trans, ...@@ -462,7 +461,8 @@ static int update_free_space_extent_count(struct btrfs_trans_handle *trans,
if (new_extents == 0) if (new_extents == 0)
return 0; return 0;
info = search_free_space_info(trans, fs_info, block_group, path, 1); info = search_free_space_info(trans, trans->fs_info, block_group, path,
1);
if (IS_ERR(info)) { if (IS_ERR(info)) {
ret = PTR_ERR(info); ret = PTR_ERR(info);
goto out; goto out;
...@@ -683,7 +683,7 @@ static int modify_free_space_bitmap(struct btrfs_trans_handle *trans, ...@@ -683,7 +683,7 @@ static int modify_free_space_bitmap(struct btrfs_trans_handle *trans,
} }
btrfs_release_path(path); btrfs_release_path(path);
ret = update_free_space_extent_count(trans, fs_info, block_group, path, ret = update_free_space_extent_count(trans, block_group, path,
new_extents); new_extents);
out: out:
...@@ -770,7 +770,7 @@ static int remove_free_space_extent(struct btrfs_trans_handle *trans, ...@@ -770,7 +770,7 @@ static int remove_free_space_extent(struct btrfs_trans_handle *trans,
} }
btrfs_release_path(path); btrfs_release_path(path);
ret = update_free_space_extent_count(trans, fs_info, block_group, path, ret = update_free_space_extent_count(trans, block_group, path,
new_extents); new_extents);
out: out:
...@@ -965,7 +965,7 @@ static int add_free_space_extent(struct btrfs_trans_handle *trans, ...@@ -965,7 +965,7 @@ static int add_free_space_extent(struct btrfs_trans_handle *trans,
goto out; goto out;
btrfs_release_path(path); btrfs_release_path(path);
ret = update_free_space_extent_count(trans, fs_info, block_group, path, ret = update_free_space_extent_count(trans, block_group, path,
new_extents); new_extents);
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