diff options
author | Jeff Mahoney <jeffm@suse.com> | 2016-06-21 21:16:51 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-12-06 16:06:57 +0100 |
commit | 6bccf3ab1e1f0913268bfcd1c09cadb1f4f2857d (patch) | |
tree | a7eae4bb4dec1cd2f7b21f5010549bfaa9aaa08c /fs/btrfs/relocation.c | |
parent | 5b4aacefb8fbfc996e68b9b083d30f8bc0972449 (diff) | |
download | linux-stable-6bccf3ab1e1f0913268bfcd1c09cadb1f4f2857d.tar.gz linux-stable-6bccf3ab1e1f0913268bfcd1c09cadb1f4f2857d.tar.bz2 linux-stable-6bccf3ab1e1f0913268bfcd1c09cadb1f4f2857d.zip |
btrfs: call functions that always use the same root with fs_info instead
There are many functions that are always called with the same root
argument. Rather than passing the same root every time, we can
pass an fs_info pointer instead and have the function get the root
pointer itself.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/relocation.c')
-rw-r--r-- | fs/btrfs/relocation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 3dc7232aa038..466c345e8635 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c @@ -4306,9 +4306,9 @@ static void describe_relocation(struct btrfs_fs_info *fs_info, /* * function to relocate all extents in a block group. */ -int btrfs_relocate_block_group(struct btrfs_root *extent_root, u64 group_start) +int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start) { - struct btrfs_fs_info *fs_info = extent_root->fs_info; + struct btrfs_root *extent_root = fs_info->extent_root; struct reloc_control *rc; struct inode *inode; struct btrfs_path *path; |