Commit 9f8a6ce6 authored by Lu Fengqi's avatar Lu Fengqi Committed by David Sterba

btrfs: qgroup: Drop fs_info parameter from btrfs_add_qgroup_relation

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 2e980acd
...@@ -5171,8 +5171,7 @@ static long btrfs_ioctl_qgroup_assign(struct file *file, void __user *arg) ...@@ -5171,8 +5171,7 @@ static long btrfs_ioctl_qgroup_assign(struct file *file, void __user *arg)
} }
if (sa->assign) { if (sa->assign) {
ret = btrfs_add_qgroup_relation(trans, fs_info, ret = btrfs_add_qgroup_relation(trans, sa->src, sa->dst);
sa->src, sa->dst);
} else { } else {
ret = btrfs_del_qgroup_relation(trans, fs_info, ret = btrfs_del_qgroup_relation(trans, fs_info,
sa->src, sa->dst); sa->src, sa->dst);
......
...@@ -1236,9 +1236,10 @@ static int quick_update_accounting(struct btrfs_fs_info *fs_info, ...@@ -1236,9 +1236,10 @@ static int quick_update_accounting(struct btrfs_fs_info *fs_info,
return ret; return ret;
} }
int btrfs_add_qgroup_relation(struct btrfs_trans_handle *trans, int btrfs_add_qgroup_relation(struct btrfs_trans_handle *trans, u64 src,
struct btrfs_fs_info *fs_info, u64 src, u64 dst) u64 dst)
{ {
struct btrfs_fs_info *fs_info = trans->fs_info;
struct btrfs_root *quota_root; struct btrfs_root *quota_root;
struct btrfs_qgroup *parent; struct btrfs_qgroup *parent;
struct btrfs_qgroup *member; struct btrfs_qgroup *member;
......
...@@ -147,8 +147,8 @@ int btrfs_qgroup_rescan(struct btrfs_fs_info *fs_info); ...@@ -147,8 +147,8 @@ int btrfs_qgroup_rescan(struct btrfs_fs_info *fs_info);
void btrfs_qgroup_rescan_resume(struct btrfs_fs_info *fs_info); void btrfs_qgroup_rescan_resume(struct btrfs_fs_info *fs_info);
int btrfs_qgroup_wait_for_completion(struct btrfs_fs_info *fs_info, int btrfs_qgroup_wait_for_completion(struct btrfs_fs_info *fs_info,
bool interruptible); bool interruptible);
int btrfs_add_qgroup_relation(struct btrfs_trans_handle *trans, int btrfs_add_qgroup_relation(struct btrfs_trans_handle *trans, u64 src,
struct btrfs_fs_info *fs_info, u64 src, u64 dst); u64 dst);
int btrfs_del_qgroup_relation(struct btrfs_trans_handle *trans, int btrfs_del_qgroup_relation(struct btrfs_trans_handle *trans,
struct btrfs_fs_info *fs_info, u64 src, u64 dst); struct btrfs_fs_info *fs_info, u64 src, u64 dst);
int btrfs_create_qgroup(struct btrfs_trans_handle *trans, int btrfs_create_qgroup(struct btrfs_trans_handle *trans,
......
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