aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/qgroup.c
diff options
context:
space:
mode:
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>2018-07-18 14:45:40 +0800
committerDavid Sterba <dsterba@suse.com>2018-08-06 13:12:52 +0200
commit280f8bd2cbe0b4b578c217b8fa504294c30abde1 (patch)
treeecfacb8ce14a3fd91c3a74a4f32c28df95d4190c /fs/btrfs/qgroup.c
parentbtrfs: qgroup: Drop fs_info parameter from btrfs_qgroup_account_extent (diff)
downloadlinux-dev-280f8bd2cbe0b4b578c217b8fa504294c30abde1.tar.xz
linux-dev-280f8bd2cbe0b4b578c217b8fa504294c30abde1.zip
btrfs: qgroup: Drop fs_info parameter from btrfs_run_qgroups
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c
index 5ac57fc3fa4b..819cdaea51ab 100644
--- a/fs/btrfs/qgroup.c
+++ b/fs/btrfs/qgroup.c
@@ -2193,9 +2193,9 @@ cleanup:
/*
* called from commit_transaction. Writes all changed qgroups to disk.
*/
-int btrfs_run_qgroups(struct btrfs_trans_handle *trans,
- struct btrfs_fs_info *fs_info)
+int btrfs_run_qgroups(struct btrfs_trans_handle *trans)
{
+ struct btrfs_fs_info *fs_info = trans->fs_info;
struct btrfs_root *quota_root = fs_info->quota_root;
int ret = 0;