Lines Matching defs:new_root
589 struct btrfs_root *new_root;
707 new_root = btrfs_get_new_fs_root(fs_info, objectid, anon_dev);
708 if (IS_ERR(new_root)) {
710 ret = PTR_ERR(new_root);
714 /* Freeing will be done in btrfs_put_root() of new_root */
717 btrfs_record_root_in_trans(trans, new_root);
719 ret = btrfs_create_subvol_root(trans, new_root, root, new_dirid);
720 btrfs_put_root(new_root);
727 mutex_lock(&new_root->objectid_mutex);
728 new_root->highest_objectid = new_dirid;
729 mutex_unlock(&new_root->objectid_mutex);
3445 struct btrfs_root *new_root;
3469 new_root = btrfs_get_fs_root(fs_info, objectid, true);
3470 if (IS_ERR(new_root)) {
3471 ret = PTR_ERR(new_root);
3474 if (!is_fstree(new_root->root_key.objectid)) {
3504 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key);
3512 btrfs_put_root(new_root);