diff options
author | David Sterba <dsterba@suse.com> | 2019-03-20 15:47:15 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 20:02:45 +0300 |
commit | bb6cb1c5b92bc67082acf4dd0f037d8d3d0d0c61 (patch) | |
tree | 2b96974685eb308be7df1434f201c9680c037538 /fs/btrfs/free-space-cache.c | |
parent | 7949f3392ed65d19f0f6726e9e32445aa8b707dc (diff) | |
download | linux-bb6cb1c5b92bc67082acf4dd0f037d8d3d0d0c61.tar.xz |
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.c')
-rw-r--r-- | fs/btrfs/free-space-cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index f30c1bc1dced..98ebe4b28f29 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -812,9 +812,9 @@ free_cache: goto out; } -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) { + struct btrfs_fs_info *fs_info = block_group->fs_info; struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; struct inode *inode; struct btrfs_path *path; |