diff options
author | Lu Fengqi <lufq.fnst@cn.fujitsu.com> | 2018-07-18 09:45:26 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 14:12:50 +0300 |
commit | 69104618f4b9dd445109e8dd755406427bd75b76 (patch) | |
tree | b510ef9959980a3a31e5cd7e05199bc3f0468c0c /fs/btrfs/qgroup.c | |
parent | 99d7f09ac01cbea28767a84d4d34dd5b1922a245 (diff) | |
download | linux-69104618f4b9dd445109e8dd755406427bd75b76.tar.xz |
btrfs: qgroup: Drop quota_root parameter from del_qgroup_item
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>
Diffstat (limited to 'fs/btrfs/qgroup.c')
-rw-r--r-- | fs/btrfs/qgroup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c index c22f1e655a60..67e0f4f38c31 100644 --- a/fs/btrfs/qgroup.c +++ b/fs/btrfs/qgroup.c @@ -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; |