diff options
author | 2010-11-03 17:49:42 +0000 | |
---|---|---|
committer | 2010-11-03 17:49:42 +0000 | |
commit | 4c35064574b7f34002a50a3bc97ec9d87f85e153 (patch) | |
tree | 961e294a29eeb1aee8a1b973f6e73b02f24e3e65 /sys/kern/subr_pool.c | |
parent | Update the internal btree documentation to reflect the current api. (diff) | |
download | wireguard-openbsd-4c35064574b7f34002a50a3bc97ec9d87f85e153.tar.xz wireguard-openbsd-4c35064574b7f34002a50a3bc97ec9d87f85e153.zip |
pool_sethardlimit should not imply pool_sethiwat; figured out with claudio
ok claudio tedu
Diffstat (limited to 'sys/kern/subr_pool.c')
-rw-r--r-- | sys/kern/subr_pool.c | 9 |
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); } |