summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/free-space-cache.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-20 13:53:49 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:46 +0200
commit2ceeae2e4c4c3be9d52e84909e3882302002bb9c (patch)
tree1c4dbaba1fde28d860c27113b1d48f874ca1f58c /fs/btrfs/free-space-cache.h
parentbtrfs: get fs_info from block group in write_pinned_extent_entries (diff)
downloadlinux-2ceeae2e4c4c3be9d52e84909e3882302002bb9c.tar.xz
linux-2ceeae2e4c4c3be9d52e84909e3882302002bb9c.zip
btrfs: get fs_info from block group in btrfs_find_space_cluster
We can read fs_info from the block group cache structure and can drop it from the parameters. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/free-space-cache.h')
-rw-r--r--fs/btrfs/free-space-cache.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/free-space-cache.h b/fs/btrfs/free-space-cache.h
index 9067841a8528..8760acb55ffd 100644
--- a/fs/btrfs/free-space-cache.h
+++ b/fs/btrfs/free-space-cache.h
@@ -92,8 +92,7 @@ u64 btrfs_find_space_for_alloc(struct btrfs_block_group_cache *block_group,
u64 btrfs_find_ino_for_alloc(struct btrfs_root *fs_root);
void btrfs_dump_free_space(struct btrfs_block_group_cache *block_group,
u64 bytes);
-int btrfs_find_space_cluster(struct btrfs_fs_info *fs_info,
- struct btrfs_block_group_cache *block_group,
+int btrfs_find_space_cluster(struct btrfs_block_group_cache *block_group,
struct btrfs_free_cluster *cluster,
u64 offset, u64 bytes, u64 empty_size);
void btrfs_init_free_cluster(struct btrfs_free_cluster *cluster);