Lines Matching refs:new_root
443 struct btrfs_root *new_root; in create_subvol() local
554 new_root = btrfs_read_fs_root_no_name(root->fs_info, &key); in create_subvol()
555 if (IS_ERR(new_root)) { in create_subvol()
556 btrfs_abort_transaction(trans, root, PTR_ERR(new_root)); in create_subvol()
557 ret = PTR_ERR(new_root); in create_subvol()
561 btrfs_record_root_in_trans(trans, new_root); in create_subvol()
563 ret = btrfs_create_subvol_root(trans, new_root, root, new_dirid); in create_subvol()
570 mutex_lock(&new_root->objectid_mutex); in create_subvol()
571 new_root->highest_objectid = new_dirid; in create_subvol()
572 mutex_unlock(&new_root->objectid_mutex); in create_subvol()
3905 struct btrfs_root *new_root; in btrfs_ioctl_default_subvol() local
3934 new_root = btrfs_read_fs_root_no_name(root->fs_info, &location); in btrfs_ioctl_default_subvol()
3935 if (IS_ERR(new_root)) { in btrfs_ioctl_default_subvol()
3936 ret = PTR_ERR(new_root); in btrfs_ioctl_default_subvol()
3960 btrfs_err(new_root->fs_info, "Umm, you don't have the default dir" in btrfs_ioctl_default_subvol()
3966 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()