summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2010-11-03 17:49:43 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2010-11-03 17:49:43 +0000
commit06870b0657124cbc29ef9dc1d10ad07c40d116df (patch)
tree94b2f703860c59fcfbc4eeac2af914e1b3094890
parentff5aea0f76983c791170c9efb1ffe1e11c3eeee6 (diff)
pool_sethardlimit should not imply pool_sethiwat; figured out with claudio
ok claudio tedu
-rw-r--r--sys/kern/subr_pool.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c
index 59935c1f672..2c201661948 100644
--- a/sys/kern/subr_pool.c
+++ b/sys/kern/subr_pool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_pool.c,v 1.98 2010/09/26 21:03:57 tedu Exp $ */
+/* $OpenBSD: subr_pool.c,v 1.99 2010/11/03 17:49:42 mikeb Exp $ */
/* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */
/*-
@@ -994,13 +994,6 @@ pool_sethardlimit(struct pool *pp, u_int n, const char *warnmsg, int ratecap)
pp->pr_hardlimit_warning_last.tv_sec = 0;
pp->pr_hardlimit_warning_last.tv_usec = 0;
- /*
- * In-line version of pool_sethiwat().
- */
- pp->pr_maxpages = (n == 0 || n == UINT_MAX)
- ? n
- : roundup(n, pp->pr_itemsperpage) / pp->pr_itemsperpage;
-
done:
return (error);
}