summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/free-space-cache.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-20 13:47:15 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:45 +0200
commitbb6cb1c5b92bc67082acf4dd0f037d8d3d0d0c61 (patch)
tree2b96974685eb308be7df1434f201c9680c037538 /fs/btrfs/free-space-cache.h
parentbtrfs: get fs_info from block group in lookup_free_space_inode (diff)
downloadlinux-bb6cb1c5b92bc67082acf4dd0f037d8d3d0d0c61.tar.xz
linux-bb6cb1c5b92bc67082acf4dd0f037d8d3d0d0c61.zip
btrfs: get fs_info from block group in load_free_space_cache
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 ab387c219bb0..9067841a8528 100644
--- a/fs/btrfs/free-space-cache.h
+++ b/fs/btrfs/free-space-cache.h
@@ -50,8 +50,7 @@ int btrfs_check_trunc_cache_free_space(struct btrfs_fs_info *fs_info,
int btrfs_truncate_free_space_cache(struct btrfs_trans_handle *trans,
struct btrfs_block_group_cache *block_group,
struct inode *inode);
-int load_free_space_cache(struct btrfs_fs_info *fs_info,
- struct btrfs_block_group_cache *block_group);
+int load_free_space_cache(struct btrfs_block_group_cache *block_group);
int btrfs_wait_cache_io(struct btrfs_trans_handle *trans,
struct btrfs_block_group_cache *block_group,
struct btrfs_path *path);