diff options
author | Jeff Mahoney <jeffm@suse.com> | 2017-02-15 16:28:29 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-17 12:03:56 +0100 |
commit | 5e00f1939f6e994123589c6e3d307de02b43c914 (patch) | |
tree | a90a8280230e6a7d7c42dc12ad17ee05eb4ffa98 /fs/btrfs/relocation.c | |
parent | 0c9ab349c2058736594ce82531673a1b4645420d (diff) | |
download | linux-5e00f1939f6e994123589c6e3d307de02b43c914.tar.bz2 |
btrfs: convert btrfs_inc_block_group_ro to accept fs_info
btrfs_inc_block_group_ro is either passed the extent root or the dev
root, but it doesn't do anything with the dev tree. Let's convert
to passing an fs_info and using the extent root.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 37175ace7fae..e2cf65cd8f17 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c @@ -4334,7 +4334,7 @@ int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start) rc->block_group = btrfs_lookup_block_group(fs_info, group_start); BUG_ON(!rc->block_group); - ret = btrfs_inc_block_group_ro(extent_root, rc->block_group); + ret = btrfs_inc_block_group_ro(fs_info, rc->block_group); if (ret) { err = ret; goto out; |