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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user