summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/relocation.c
diff options
context:
space:
mode:
authorDavid Sterba2019-03-20 13:40:19 +0100
committerDavid Sterba2019-04-29 19:02:45 +0200
commit7949f3392ed65d19f0f6726e9e32445aa8b707dc (patch)
treeb999fb75ede0735fcee799a3cc102ea6173aa0ed /fs/btrfs/relocation.c
parentbtrfs: get fs_info from block group in pin_down_extent (diff)
downloadkernel-qcow2-linux-7949f3392ed65d19f0f6726e9e32445aa8b707dc.tar.gz
kernel-qcow2-linux-7949f3392ed65d19f0f6726e9e32445aa8b707dc.tar.xz
kernel-qcow2-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/relocation.c')
-rw-r--r--fs/btrfs/relocation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c
index 2246aa2e30e3..9babbc74d145 100644
--- a/fs/btrfs/relocation.c
+++ b/fs/btrfs/relocation.c
@@ -4299,7 +4299,7 @@ int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start)
goto out;
}
- inode = lookup_free_space_inode(fs_info, rc->block_group, path);
+ inode = lookup_free_space_inode(rc->block_group, path);
btrfs_free_path(path);
if (!IS_ERR(inode))