Lines Matching refs:roots
1405 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()
2434 ASSERT(ctx->roots == NULL); in iterate_extent_inodes()
2493 if (!ctx->roots) { in iterate_extent_inodes()
2494 ctx->roots = ulist_alloc(GFP_NOFS); in iterate_extent_inodes()
2495 if (!ctx->roots) { in iterate_extent_inodes()
2507 ctx->cache_store(leaf_bytenr, ctx->roots, ctx->user_ctx); in iterate_extent_inodes()
2510 while (!ret && (root_node = ulist_next(ctx->roots, &root_uiter))) { in iterate_extent_inodes()
2519 ulist_reinit(ctx->roots); in iterate_extent_inodes()
2532 ulist_free(ctx->roots); in iterate_extent_inodes()
2533 ctx->roots = NULL; in iterate_extent_inodes()