diff options
author | Jeff Mahoney <jeffm@suse.com> | 2017-08-17 10:25:11 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-08-21 17:49:54 +0200 |
commit | 1cd5447eb677822c5c22bb52161c2105507dcce0 (patch) | |
tree | 04e4163472d70b0679931b5adefbe232fb0a95b0 /fs/btrfs/qgroup.c | |
parent | 64ecdb647ddb83dcff9c8e2a5c40119f171ea004 (diff) | |
download | linux-stable-1cd5447eb677822c5c22bb52161c2105507dcce0.tar.gz linux-stable-1cd5447eb677822c5c22bb52161c2105507dcce0.tar.bz2 linux-stable-1cd5447eb677822c5c22bb52161c2105507dcce0.zip |
btrfs: pass fs_info to btrfs_del_root instead of tree_root
btrfs_del_roots always uses the tree_root. Let's pass fs_info instead.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/qgroup.c')
-rw-r--r-- | fs/btrfs/qgroup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c index ddc37c537058..5c8b61c86e61 100644 --- a/fs/btrfs/qgroup.c +++ b/fs/btrfs/qgroup.c @@ -946,7 +946,6 @@ out: int btrfs_quota_disable(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info) { - struct btrfs_root *tree_root = fs_info->tree_root; struct btrfs_root *quota_root; int ret = 0; @@ -968,7 +967,7 @@ int btrfs_quota_disable(struct btrfs_trans_handle *trans, if (ret) goto out; - ret = btrfs_del_root(trans, tree_root, "a_root->root_key); + ret = btrfs_del_root(trans, fs_info, "a_root->root_key); if (ret) goto out; |