summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/free-space-cache.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-20 13:40:19 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:45 +0200
commit7949f3392ed65d19f0f6726e9e32445aa8b707dc (patch)
treeb999fb75ede0735fcee799a3cc102ea6173aa0ed /fs/btrfs/free-space-cache.h
parentbtrfs: get fs_info from block group in pin_down_extent (diff)
downloadlinux-7949f3392ed65d19f0f6726e9e32445aa8b707dc.tar.xz
linux-7949f3392ed65d19f0f6726e9e32445aa8b707dc.zip
btrfs: get fs_info from block group in lookup_free_space_inode
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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/free-space-cache.h b/fs/btrfs/free-space-cache.h
index b3a4fce7946a..ab387c219bb0 100644
--- a/fs/btrfs/free-space-cache.h
+++ b/fs/btrfs/free-space-cache.h
@@ -38,9 +38,9 @@ struct btrfs_free_space_op {
struct btrfs_io_ctl;
-struct inode *lookup_free_space_inode(struct btrfs_fs_info *fs_info,
- struct btrfs_block_group_cache
- *block_group, struct btrfs_path *path);
+struct inode *lookup_free_space_inode(
+ struct btrfs_block_group_cache *block_group,
+ struct btrfs_path *path);
int create_free_space_inode(struct btrfs_trans_handle *trans,
struct btrfs_block_group_cache *block_group,
struct btrfs_path *path);