Lines Matching refs:new_root
514 struct btrfs_root *new_root; in create_subvol() local
631 new_root = btrfs_get_new_fs_root(fs_info, objectid, anon_dev); in create_subvol()
632 if (IS_ERR(new_root)) { in create_subvol()
634 ret = PTR_ERR(new_root); in create_subvol()
641 ret = btrfs_record_root_in_trans(trans, new_root); in create_subvol()
643 btrfs_put_root(new_root); in create_subvol()
648 ret = btrfs_create_subvol_root(trans, new_root, root, mnt_userns); in create_subvol()
649 btrfs_put_root(new_root); in create_subvol()
3429 struct btrfs_root *new_root; in btrfs_ioctl_default_subvol() local
3453 new_root = btrfs_get_fs_root(fs_info, objectid, true); in btrfs_ioctl_default_subvol()
3454 if (IS_ERR(new_root)) { in btrfs_ioctl_default_subvol()
3455 ret = PTR_ERR(new_root); in btrfs_ioctl_default_subvol()
3458 if (!is_fstree(new_root->root_key.objectid)) { in btrfs_ioctl_default_subvol()
3487 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()
3495 btrfs_put_root(new_root); in btrfs_ioctl_default_subvol()