Lines Matching refs:new_root
444 struct btrfs_root *new_root; in create_subvol() local
555 new_root = btrfs_read_fs_root_no_name(root->fs_info, &key); in create_subvol()
556 if (IS_ERR(new_root)) { in create_subvol()
557 ret = PTR_ERR(new_root); in create_subvol()
562 btrfs_record_root_in_trans(trans, new_root); in create_subvol()
564 ret = btrfs_create_subvol_root(trans, new_root, root, new_dirid); in create_subvol()
571 mutex_lock(&new_root->objectid_mutex); in create_subvol()
572 new_root->highest_objectid = new_dirid; in create_subvol()
573 mutex_unlock(&new_root->objectid_mutex); in create_subvol()
4070 struct btrfs_root *new_root; in btrfs_ioctl_default_subvol() local
4099 new_root = btrfs_read_fs_root_no_name(root->fs_info, &location); in btrfs_ioctl_default_subvol()
4100 if (IS_ERR(new_root)) { in btrfs_ioctl_default_subvol()
4101 ret = PTR_ERR(new_root); in btrfs_ioctl_default_subvol()
4125 btrfs_err(new_root->fs_info, "Umm, you don't have the default dir" in btrfs_ioctl_default_subvol()
4131 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()