Lines Matching refs:roots
1408 ASSERT(ctx->roots == NULL); in find_parent_nodes()
1603 if (ctx->roots && ref->count && ref->root_id && ref->parent == 0) { in find_parent_nodes()
1605 ret = ulist_add(ctx->roots, ref->root_id, 0, GFP_NOFS); in find_parent_nodes()
1758 if (!ctx->roots) { in btrfs_find_all_roots_safe()
1759 ctx->roots = ulist_alloc(GFP_NOFS); in btrfs_find_all_roots_safe()
1760 if (!ctx->roots) { in btrfs_find_all_roots_safe()
1777 ulist_free(ctx->roots); in btrfs_find_all_roots_safe()
1778 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()