summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2009-09-05 16:06:58 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2009-09-05 16:06:58 +0000
commit9a4889926beaa5d0ead2fc3bfa8af01ad5c44d87 (patch)
treee28f94d59b1dc16948fe34c33dcf3bda04285be5 /sys/kern
parent5779817afefc1f5094b3cf883776acd1e969850b (diff)
sync comment to reality, off-page page headers go into
an RB tree, not into a hashtable.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_pool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c
index 1d8fab6dd53..ddf9ddb3a9e 100644
--- a/sys/kern/subr_pool.c
+++ b/sys/kern/subr_pool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_pool.c,v 1.89 2009/08/26 00:37:17 thib Exp $ */
+/* $OpenBSD: subr_pool.c,v 1.90 2009/09/05 16:06:57 thib Exp $ */
/* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */
/*-
@@ -341,8 +341,8 @@ pool_init(struct pool *pp, size_t size, u_int align, u_int ioff, int flags,
/*
* Decide whether to put the page header off page to avoid
* wasting too large a part of the page. Off-page page headers
- * go on a hash table, so we can match a returned item
- * with its header based on the page address.
+ * go into an RB tree, so we can match a returned item with
+ * its header based on the page address.
* We use 1/16 of the page size as the threshold (XXX: tune)
*/
if (pp->pr_size < palloc->pa_pagesz/16 && pp->pr_size < PAGE_SIZE) {