diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-05-10 15:44:43 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-28 19:07:33 +0300 |
commit | 2d5cffa1b0d5eca88d01477b27a86f56bd9175b7 (patch) | |
tree | 2cbea8f84fda8c7047c26e03b988c6309e14538f /fs/btrfs/tests/free-space-tree-tests.c | |
parent | 9a7e0f9284b14579b9fe5e123711fda31507dfb4 (diff) | |
download | linux-2d5cffa1b0d5eca88d01477b27a86f56bd9175b7.tar.xz |
btrfs: Remove fs_info argument from __add_to_free_space_tree
This function already takes a transaction handle which contains a
reference to fs_info.
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/tests/free-space-tree-tests.c')
-rw-r--r-- | fs/btrfs/tests/free-space-tree-tests.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/fs/btrfs/tests/free-space-tree-tests.c b/fs/btrfs/tests/free-space-tree-tests.c index f3dfd9fc762f..6d2b8f736020 100644 --- a/fs/btrfs/tests/free-space-tree-tests.c +++ b/fs/btrfs/tests/free-space-tree-tests.c @@ -274,14 +274,14 @@ static int test_merge_left(struct btrfs_trans_handle *trans, return ret; } - ret = __add_to_free_space_tree(trans, fs_info, cache, path, - cache->key.objectid, alignment); + ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid, + alignment); if (ret) { test_msg("Could not add free space\n"); return ret; } - ret = __add_to_free_space_tree(trans, fs_info, cache, path, + ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid + alignment, alignment); if (ret) { @@ -312,7 +312,7 @@ static int test_merge_right(struct btrfs_trans_handle *trans, return ret; } - ret = __add_to_free_space_tree(trans, fs_info, cache, path, + ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid + 2 * alignment, alignment); if (ret) { @@ -320,7 +320,7 @@ static int test_merge_right(struct btrfs_trans_handle *trans, return ret; } - ret = __add_to_free_space_tree(trans, fs_info, cache, path, + ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid + alignment, alignment); if (ret) { @@ -351,14 +351,14 @@ static int test_merge_both(struct btrfs_trans_handle *trans, return ret; } - ret = __add_to_free_space_tree(trans, fs_info, cache, path, - cache->key.objectid, alignment); + ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid, + alignment); if (ret) { test_msg("Could not add free space\n"); return ret; } - ret = __add_to_free_space_tree(trans, fs_info, cache, path, + ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid + 2 * alignment, alignment); if (ret) { @@ -366,7 +366,7 @@ static int test_merge_both(struct btrfs_trans_handle *trans, return ret; } - ret = __add_to_free_space_tree(trans, fs_info, cache, path, + ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid + alignment, alignment); if (ret) { @@ -399,14 +399,14 @@ static int test_merge_none(struct btrfs_trans_handle *trans, return ret; } - ret = __add_to_free_space_tree(trans, fs_info, cache, path, - cache->key.objectid, alignment); + ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid, + alignment); if (ret) { test_msg("Could not add free space\n"); return ret; } - ret = __add_to_free_space_tree(trans, fs_info, cache, path, + ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid + 4 * alignment, alignment); if (ret) { @@ -414,7 +414,7 @@ static int test_merge_none(struct btrfs_trans_handle *trans, return ret; } - ret = __add_to_free_space_tree(trans, fs_info, cache, path, + ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid + 2 * alignment, alignment); if (ret) { |