Lines Matching refs:new_root
592 struct btrfs_root *new_root; in create_subvol() local
720 new_root = btrfs_get_new_fs_root(fs_info, objectid, anon_dev); in create_subvol()
721 if (IS_ERR(new_root)) { in create_subvol()
722 ret = PTR_ERR(new_root); in create_subvol()
728 BTRFS_I(new_inode_args.inode)->root = new_root; in create_subvol()
731 ret = btrfs_record_root_in_trans(trans, new_root); in create_subvol()
2882 struct btrfs_root *new_root; in btrfs_ioctl_default_subvol() local
2907 new_root = btrfs_get_fs_root(fs_info, objectid, true); in btrfs_ioctl_default_subvol()
2908 if (IS_ERR(new_root)) { in btrfs_ioctl_default_subvol()
2909 ret = PTR_ERR(new_root); in btrfs_ioctl_default_subvol()
2912 if (!is_fstree(new_root->root_key.objectid)) { in btrfs_ioctl_default_subvol()
2941 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()
2949 btrfs_put_root(new_root); in btrfs_ioctl_default_subvol()