aboutsummaryrefslogtreecommitdiff
path: root/iterator/iter_hints.h
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2025-04-25 14:41:24 +0000
committerCy Schubert <cy@FreeBSD.org>2025-04-25 14:41:24 +0000
commit44bab727dfe28451b777dc9e47db4f748b709182 (patch)
treeb8abab888105843c7f120357a1e010bfd6d5ef8c /iterator/iter_hints.h
parent0a6d797cf6eb751d7eb613900cd19803e05d905f (diff)
Diffstat (limited to 'iterator/iter_hints.h')
-rw-r--r--iterator/iter_hints.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/iterator/iter_hints.h b/iterator/iter_hints.h
index 26de323c9e98..87434b5ac2e6 100644
--- a/iterator/iter_hints.h
+++ b/iterator/iter_hints.h
@@ -198,4 +198,13 @@ int hints_add_stub(struct iter_hints* hints, uint16_t c, struct delegpt* dp,
void hints_delete_stub(struct iter_hints* hints, uint16_t c,
uint8_t* nm, int nolock);
+/**
+ * Swap internal tree with preallocated entries. Caller should manage
+ * the locks.
+ * @param hints: the hints data structure.
+ * @param data: the data structure used to take elements from. This contains
+ * the old elements on return.
+ */
+void hints_swap_tree(struct iter_hints* hints, struct iter_hints* data);
+
#endif /* ITERATOR_ITER_HINTS_H */