summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/subr_pool.c4
-rw-r--r--sys/sys/pool.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c
index 56cb0a1d295..a39f1a80e85 100644
--- a/sys/kern/subr_pool.c
+++ b/sys/kern/subr_pool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_pool.c,v 1.44 2004/07/20 23:47:08 art Exp $ */
+/* $OpenBSD: subr_pool.c,v 1.45 2004/07/29 09:18:17 mickey Exp $ */
/* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */
/*-
@@ -961,7 +961,7 @@ pool_do_put(struct pool *pp, void *v)
*/
if (ph->ph_nmissing == 0) {
pp->pr_nidle++;
- if (pp->pr_npages > pp->pr_maxpages ||
+ if (pp->pr_nidle > pp->pr_maxpages ||
(pp->pr_alloc->pa_flags & PA_WANT) != 0) {
pr_rmpage(pp, ph, NULL);
} else {
diff --git a/sys/sys/pool.h b/sys/sys/pool.h
index 0f246f99647..c558c928c86 100644
--- a/sys/sys/pool.h
+++ b/sys/sys/pool.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pool.h,v 1.17 2004/07/20 23:47:08 art Exp $ */
+/* $OpenBSD: pool.h,v 1.18 2004/07/29 09:18:17 mickey Exp $ */
/* $NetBSD: pool.h,v 1.27 2001/06/06 22:00:17 rafal Exp $ */
/*-
@@ -115,7 +115,7 @@ struct pool {
unsigned int pr_itemoffset; /* Align this offset in item */
unsigned int pr_minitems; /* minimum # of items to keep */
unsigned int pr_minpages; /* same in page units */
- unsigned int pr_maxpages; /* maximum # of pages to keep */
+ unsigned int pr_maxpages; /* maximum # of idle pages to keep */
unsigned int pr_npages; /* # of pages allocated */
unsigned int pr_itemsperpage;/* # items that fit in a page */
unsigned int pr_slack; /* unused space in a page */