Lines Matching refs:new_root
568 struct btrfs_root *new_root; in create_subvol() local
670 new_root = btrfs_read_fs_root_no_name(fs_info, &key); in create_subvol()
671 if (IS_ERR(new_root)) { in create_subvol()
672 ret = PTR_ERR(new_root); in create_subvol()
677 btrfs_record_root_in_trans(trans, new_root); in create_subvol()
679 ret = btrfs_create_subvol_root(trans, new_root, root, new_dirid); in create_subvol()
686 mutex_lock(&new_root->objectid_mutex); in create_subvol()
687 new_root->highest_objectid = new_dirid; in create_subvol()
688 mutex_unlock(&new_root->objectid_mutex); in create_subvol()
3955 struct btrfs_root *new_root; in btrfs_ioctl_default_subvol() local
3984 new_root = btrfs_read_fs_root_no_name(fs_info, &location); in btrfs_ioctl_default_subvol()
3985 if (IS_ERR(new_root)) { in btrfs_ioctl_default_subvol()
3986 ret = PTR_ERR(new_root); in btrfs_ioctl_default_subvol()
3989 if (!is_fstree(new_root->root_key.objectid)) { in btrfs_ioctl_default_subvol()
4020 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()