Lines Matching refs:tree_root
209 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots() local
230 ret = btrfs_search_slot(NULL, tree_root, &key, path, 0, 0); in btrfs_find_orphan_roots()
238 ret = btrfs_next_leaf(tree_root, path); in btrfs_find_orphan_roots()
272 root = btrfs_read_fs_root(tree_root, &root_key); in btrfs_find_orphan_roots()
281 trans = btrfs_join_transaction(tree_root); in btrfs_find_orphan_roots()
288 err = btrfs_del_orphan_item(trans, tree_root, in btrfs_find_orphan_roots()
326 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root()
350 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref() local
367 ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); in btrfs_del_root_ref()
382 ret = btrfs_del_item(trans, tree_root, path); in btrfs_del_root_ref()
422 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_add_root_ref() local
438 ret = btrfs_insert_empty_item(trans, tree_root, path, &key, in btrfs_add_root_ref()