Lines Matching refs:new_root
589 struct btrfs_root *new_root; in create_subvol() local
695 new_root = btrfs_get_new_fs_root(fs_info, objectid, anon_dev); in create_subvol()
696 if (IS_ERR(new_root)) { in create_subvol()
698 ret = PTR_ERR(new_root); in create_subvol()
705 btrfs_record_root_in_trans(trans, new_root); in create_subvol()
707 ret = btrfs_create_subvol_root(trans, new_root, root, new_dirid); in create_subvol()
708 btrfs_put_root(new_root); in create_subvol()
715 mutex_lock(&new_root->objectid_mutex); in create_subvol()
716 new_root->highest_objectid = new_dirid; in create_subvol()
717 mutex_unlock(&new_root->objectid_mutex); in create_subvol()
3357 struct btrfs_root *new_root; in btrfs_ioctl_default_subvol() local
3381 new_root = btrfs_get_fs_root(fs_info, objectid, true); in btrfs_ioctl_default_subvol()
3382 if (IS_ERR(new_root)) { in btrfs_ioctl_default_subvol()
3383 ret = PTR_ERR(new_root); in btrfs_ioctl_default_subvol()
3386 if (!is_fstree(new_root->root_key.objectid)) { in btrfs_ioctl_default_subvol()
3416 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()
3424 btrfs_put_root(new_root); in btrfs_ioctl_default_subvol()