summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/qgroup.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-20 13:20:49 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:41 +0200
commit9b7a2440ae51de73bf80e07b0465b9ed736397bd (patch)
tree511fc0c300a9729d11e82c3fcbcc78a9921e5e47 /fs/btrfs/qgroup.c
parentbtrfs: get fs_info from trans in update_block_group (diff)
downloadlinux-9b7a2440ae51de73bf80e07b0465b9ed736397bd.tar.xz
linux-9b7a2440ae51de73bf80e07b0465b9ed736397bd.zip
btrfs: get fs_info from trans in btrfs_create_tree
We can read fs_info from the transaction and can drop it from the parameters. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/qgroup.c')
-rw-r--r--fs/btrfs/qgroup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c
index 95361ccaa488..2f708f2c4e67 100644
--- a/fs/btrfs/qgroup.c
+++ b/fs/btrfs/qgroup.c
@@ -918,8 +918,7 @@ int btrfs_quota_enable(struct btrfs_fs_info *fs_info)
/*
* initially create the quota tree
*/
- quota_root = btrfs_create_tree(trans, fs_info,
- BTRFS_QUOTA_TREE_OBJECTID);
+ quota_root = btrfs_create_tree(trans, BTRFS_QUOTA_TREE_OBJECTID);
if (IS_ERR(quota_root)) {
ret = PTR_ERR(quota_root);
btrfs_abort_transaction(trans, ret);