btrfs: qgroup: Drop quota_root parameter from del_qgroup_item
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>
Wed, 18 Jul 2018 06:45:26 +0000 (14:45 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:50 +0000 (13:12 +0200)
It can be fetched from the transaction handle.

Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/qgroup.c

index c22f1e655a60dc85179be2c05e131279b45e5c73..67e0f4f38c310b5029cff9840a92598c3a86bbb8 100644 (file)
@@ -653,10 +653,10 @@ out:
        return ret;
 }
 
-static int del_qgroup_item(struct btrfs_trans_handle *trans,
-                          struct btrfs_root *quota_root, u64 qgroupid)
+static int del_qgroup_item(struct btrfs_trans_handle *trans, u64 qgroupid)
 {
        int ret;
+       struct btrfs_root *quota_root = trans->fs_info->quota_root;
        struct btrfs_path *path;
        struct btrfs_key key;
 
@@ -1420,7 +1420,7 @@ int btrfs_remove_qgroup(struct btrfs_trans_handle *trans,
                        goto out;
                }
        }
-       ret = del_qgroup_item(trans, quota_root, qgroupid);
+       ret = del_qgroup_item(trans, qgroupid);
        if (ret && ret != -ENOENT)
                goto out;