btrfs: remove unnecessary fs_info argument from delete_block_group_cache()
The fs_info can be taken from the given block group, so there is no need to pass it as an argument. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
committed by
David Sterba
parent
f75a043737
commit
20faaab2c3
@@ -3239,11 +3239,11 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int delete_block_group_cache(struct btrfs_fs_info *fs_info,
|
||||
struct btrfs_block_group *block_group,
|
||||
static int delete_block_group_cache(struct btrfs_block_group *block_group,
|
||||
struct inode *inode,
|
||||
u64 ino)
|
||||
{
|
||||
struct btrfs_fs_info *fs_info = block_group->fs_info;
|
||||
struct btrfs_root *root = fs_info->tree_root;
|
||||
struct btrfs_trans_handle *trans;
|
||||
struct btrfs_inode *btrfs_inode;
|
||||
@@ -3315,8 +3315,7 @@ static int delete_v1_space_cache(struct extent_buffer *leaf,
|
||||
}
|
||||
if (!found)
|
||||
return -ENOENT;
|
||||
ret = delete_block_group_cache(leaf->fs_info, block_group, NULL,
|
||||
space_cache_ino);
|
||||
ret = delete_block_group_cache(block_group, NULL, space_cache_ino);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -3980,7 +3979,7 @@ int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start)
|
||||
btrfs_free_path(path);
|
||||
|
||||
if (!IS_ERR(inode))
|
||||
ret = delete_block_group_cache(fs_info, rc->block_group, inode, 0);
|
||||
ret = delete_block_group_cache(rc->block_group, inode, 0);
|
||||
else
|
||||
ret = PTR_ERR(inode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user