summaryrefslogtreecommitdiff
path: root/fs/btrfs/free-space-tree.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-20 14:11:21 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:46 +0200
commit2ccf545e0db9398d0459915a94cb995c9fd5c570 (patch)
tree6a3a33bfe56386c2852976b5a6ff2b364fc61b34 /fs/btrfs/free-space-tree.h
parent2ceeae2e4c4c3be9d52e84909e3882302002bb9c (diff)
btrfs: get fs_info from block group in search_free_space_info
We can read fs_info from the block group cache structure and can drop it from the parameters. Though the transaction is also availabe, it's not guaranteed to be non-NULL. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/free-space-tree.h')
-rw-r--r--fs/btrfs/free-space-tree.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/free-space-tree.h b/fs/btrfs/free-space-tree.h
index 3133651d7d70..22b7602bde25 100644
--- a/fs/btrfs/free-space-tree.h
+++ b/fs/btrfs/free-space-tree.h
@@ -30,7 +30,6 @@ int remove_from_free_space_tree(struct btrfs_trans_handle *trans,
#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
struct btrfs_free_space_info *
search_free_space_info(struct btrfs_trans_handle *trans,
- struct btrfs_fs_info *fs_info,
struct btrfs_block_group_cache *block_group,
struct btrfs_path *path, int cow);
int __add_to_free_space_tree(struct btrfs_trans_handle *trans,