Lines Matching refs:roots
1399 ASSERT(ctx->roots == NULL); in find_parent_nodes()
1597 if (ctx->roots && ref->count && ref->root_id && ref->parent == 0) { in find_parent_nodes()
1599 ret = ulist_add(ctx->roots, ref->root_id, 0, GFP_NOFS); in find_parent_nodes()
1752 if (!ctx->roots) { in btrfs_find_all_roots_safe()
1753 ctx->roots = ulist_alloc(GFP_NOFS); in btrfs_find_all_roots_safe()
1754 if (!ctx->roots) { in btrfs_find_all_roots_safe()
1771 ulist_free(ctx->roots); in btrfs_find_all_roots_safe()
1772 ctx->roots = NULL; in btrfs_find_all_roots_safe()
2423 ASSERT(ctx->roots == NULL); in iterate_extent_inodes()
2482 if (!ctx->roots) { in iterate_extent_inodes()
2483 ctx->roots = ulist_alloc(GFP_NOFS); in iterate_extent_inodes()
2484 if (!ctx->roots) { in iterate_extent_inodes()
2496 ctx->cache_store(leaf_bytenr, ctx->roots, ctx->user_ctx); in iterate_extent_inodes()
2499 while (!ret && (root_node = ulist_next(ctx->roots, &root_uiter))) { in iterate_extent_inodes()
2508 ulist_reinit(ctx->roots); in iterate_extent_inodes()
2521 ulist_free(ctx->roots); in iterate_extent_inodes()
2522 ctx->roots = NULL; in iterate_extent_inodes()