Commit 69104618 authored by Lu Fengqi's avatar Lu Fengqi Committed by David Sterba

btrfs: qgroup: Drop quota_root parameter from del_qgroup_item

It can be fetched from the transaction handle.
Signed-off-by: default avatarLu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 99d7f09a
...@@ -653,10 +653,10 @@ static int add_qgroup_item(struct btrfs_trans_handle *trans, ...@@ -653,10 +653,10 @@ static int add_qgroup_item(struct btrfs_trans_handle *trans,
return ret; return ret;
} }
static int del_qgroup_item(struct btrfs_trans_handle *trans, static int del_qgroup_item(struct btrfs_trans_handle *trans, u64 qgroupid)
struct btrfs_root *quota_root, u64 qgroupid)
{ {
int ret; int ret;
struct btrfs_root *quota_root = trans->fs_info->quota_root;
struct btrfs_path *path; struct btrfs_path *path;
struct btrfs_key key; struct btrfs_key key;
...@@ -1420,7 +1420,7 @@ int btrfs_remove_qgroup(struct btrfs_trans_handle *trans, ...@@ -1420,7 +1420,7 @@ int btrfs_remove_qgroup(struct btrfs_trans_handle *trans,
goto out; goto out;
} }
} }
ret = del_qgroup_item(trans, quota_root, qgroupid); ret = del_qgroup_item(trans, qgroupid);
if (ret && ret != -ENOENT) if (ret && ret != -ENOENT)
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment