Lines Matching refs:new_root
583 struct btrfs_root *new_root; in create_subvol() local
711 new_root = btrfs_get_new_fs_root(fs_info, objectid, anon_dev); in create_subvol()
712 if (IS_ERR(new_root)) { in create_subvol()
713 ret = PTR_ERR(new_root); in create_subvol()
719 BTRFS_I(new_inode_args.inode)->root = new_root; in create_subvol()
722 ret = btrfs_record_root_in_trans(trans, new_root); in create_subvol()
3796 struct btrfs_root *new_root; in btrfs_ioctl_default_subvol() local
3821 new_root = btrfs_get_fs_root(fs_info, objectid, true); in btrfs_ioctl_default_subvol()
3822 if (IS_ERR(new_root)) { in btrfs_ioctl_default_subvol()
3823 ret = PTR_ERR(new_root); in btrfs_ioctl_default_subvol()
3826 if (!is_fstree(new_root->root_key.objectid)) { in btrfs_ioctl_default_subvol()
3855 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()
3863 btrfs_put_root(new_root); in btrfs_ioctl_default_subvol()