|
@@ -718,7 +718,7 @@ static noinline int create_subvol(struct inode *dir,
|
|
|
btrfs_ino(BTRFS_I(dir)), index, name, namelen);
|
|
|
BUG_ON(ret);
|
|
|
|
|
|
- ret = btrfs_uuid_tree_add(trans, fs_info, root_item->uuid,
|
|
|
+ ret = btrfs_uuid_tree_add(trans, root_item->uuid,
|
|
|
BTRFS_UUID_KEY_SUBVOL, objectid);
|
|
|
if (ret)
|
|
|
btrfs_abort_transaction(trans, ret);
|
|
@@ -5043,7 +5043,7 @@ static long _btrfs_ioctl_set_received_subvol(struct file *file,
|
|
|
goto out;
|
|
|
}
|
|
|
if (received_uuid_changed && !btrfs_is_empty_uuid(sa->uuid)) {
|
|
|
- ret = btrfs_uuid_tree_add(trans, fs_info, sa->uuid,
|
|
|
+ ret = btrfs_uuid_tree_add(trans, sa->uuid,
|
|
|
BTRFS_UUID_KEY_RECEIVED_SUBVOL,
|
|
|
root->root_key.objectid);
|
|
|
if (ret < 0 && ret != -EEXIST) {
|