Lines Matching refs:new_root
602 struct btrfs_root *new_root; in create_subvol() local
737 new_root = btrfs_get_new_fs_root(fs_info, objectid, &anon_dev); in create_subvol()
738 if (IS_ERR(new_root)) { in create_subvol()
739 ret = PTR_ERR(new_root); in create_subvol()
745 BTRFS_I(new_inode_args.inode)->root = new_root; in create_subvol()
748 ret = btrfs_record_root_in_trans(trans, new_root); in create_subvol()
2952 struct btrfs_root *new_root; in btrfs_ioctl_default_subvol() local
2977 new_root = btrfs_get_fs_root(fs_info, objectid, true); in btrfs_ioctl_default_subvol()
2978 if (IS_ERR(new_root)) { in btrfs_ioctl_default_subvol()
2979 ret = PTR_ERR(new_root); in btrfs_ioctl_default_subvol()
2982 if (!is_fstree(btrfs_root_id(new_root))) { in btrfs_ioctl_default_subvol()
3011 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()
3019 btrfs_put_root(new_root); in btrfs_ioctl_default_subvol()