Lines Matching refs:new_root
516 struct btrfs_root *new_root; in create_subvol() local
635 new_root = btrfs_get_new_fs_root(fs_info, objectid, anon_dev); in create_subvol()
636 if (IS_ERR(new_root)) { in create_subvol()
638 ret = PTR_ERR(new_root); in create_subvol()
645 ret = btrfs_record_root_in_trans(trans, new_root); in create_subvol()
647 btrfs_put_root(new_root); in create_subvol()
652 ret = btrfs_create_subvol_root(trans, new_root, root, mnt_userns); in create_subvol()
653 btrfs_put_root(new_root); in create_subvol()
3395 struct btrfs_root *new_root; in btrfs_ioctl_default_subvol() local
3419 new_root = btrfs_get_fs_root(fs_info, objectid, true); in btrfs_ioctl_default_subvol()
3420 if (IS_ERR(new_root)) { in btrfs_ioctl_default_subvol()
3421 ret = PTR_ERR(new_root); in btrfs_ioctl_default_subvol()
3424 if (!is_fstree(new_root->root_key.objectid)) { in btrfs_ioctl_default_subvol()
3453 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()
3461 btrfs_put_root(new_root); in btrfs_ioctl_default_subvol()