Lines Matching refs:new_root
5282 struct btrfs_root *new_root; in fixup_tree_root_location() local
5322 new_root = btrfs_read_fs_root_no_name(root->fs_info, location); in fixup_tree_root_location()
5323 if (IS_ERR(new_root)) { in fixup_tree_root_location()
5324 err = PTR_ERR(new_root); in fixup_tree_root_location()
5328 *sub_root = new_root; in fixup_tree_root_location()
5329 location->objectid = btrfs_root_dirid(&new_root->root_item); in fixup_tree_root_location()
8854 struct btrfs_root *new_root, in btrfs_create_subvol_root() argument
8862 inode = btrfs_new_inode(trans, new_root, NULL, "..", 2, in btrfs_create_subvol_root()
8875 err = btrfs_subvol_inherit_props(trans, new_root, parent_root); in btrfs_create_subvol_root()
8877 btrfs_err(new_root->fs_info, in btrfs_create_subvol_root()
8879 new_root->root_key.objectid, err); in btrfs_create_subvol_root()
8881 err = btrfs_update_inode(trans, new_root, inode); in btrfs_create_subvol_root()