btrfs: Remove fs_info argument from convert_free_space_to_bitmaps
This function already takes a transaction handle which contains a reference to fs_info. So 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>
This commit is contained in:

committed by
David Sterba

parent
f3f7277995
commit
719fb4de55
@@ -137,7 +137,7 @@ static int check_free_space_extents(struct btrfs_trans_handle *trans,
|
||||
return ret;
|
||||
}
|
||||
} else {
|
||||
ret = convert_free_space_to_bitmaps(trans, fs_info, cache, path);
|
||||
ret = convert_free_space_to_bitmaps(trans, cache, path);
|
||||
if (ret) {
|
||||
test_msg("Could not convert to bitmaps\n");
|
||||
return ret;
|
||||
@@ -498,8 +498,7 @@ static int run_test(test_func_t test_func, int bitmaps, u32 sectorsize,
|
||||
}
|
||||
|
||||
if (bitmaps) {
|
||||
ret = convert_free_space_to_bitmaps(&trans, root->fs_info,
|
||||
cache, path);
|
||||
ret = convert_free_space_to_bitmaps(&trans, cache, path);
|
||||
if (ret) {
|
||||
test_msg("Could not convert block group to bitmaps\n");
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user