Lines Matching refs:new_root
5729 struct btrfs_root *new_root; in fixup_tree_root_location() local
5768 new_root = btrfs_get_fs_root(fs_info, location->objectid, true); in fixup_tree_root_location()
5769 if (IS_ERR(new_root)) { in fixup_tree_root_location()
5770 err = PTR_ERR(new_root); in fixup_tree_root_location()
5774 *sub_root = new_root; in fixup_tree_root_location()
5775 location->objectid = btrfs_root_dirid(&new_root->root_item); in fixup_tree_root_location()
9044 struct btrfs_root *new_root, in btrfs_create_subvol_root() argument
9053 err = btrfs_get_free_objectid(new_root, &ino); in btrfs_create_subvol_root()
9057 inode = btrfs_new_inode(trans, new_root, mnt_userns, NULL, "..", 2, in btrfs_create_subvol_root()
9070 err = btrfs_subvol_inherit_props(trans, new_root, parent_root); in btrfs_create_subvol_root()
9072 btrfs_err(new_root->fs_info, in btrfs_create_subvol_root()
9074 new_root->root_key.objectid, err); in btrfs_create_subvol_root()
9076 err = btrfs_update_inode(trans, new_root, BTRFS_I(inode)); in btrfs_create_subvol_root()