summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2015-01-04 08:54:02 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2015-01-04 08:54:02 +0000
commit84ce90af35cd955d4ba5b54376aa40f8bdd49763 (patch)
tree78709bc0a5c2eb67afd360f3553d5e7976321e42
parentfe8ce511050505f4da828a7fa6ac9cbda41e2d08 (diff)
back out r1.173, aka the "* 8" diff. it tickles a problem on some
landisk machines. we've been unable to figure out due to a lack of hardware (on my part) or time. discussed with and ok miod@
-rw-r--r--sys/kern/subr_pool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c
index 3cf04744ce9..678e93ab9b8 100644
--- a/sys/kern/subr_pool.c
+++ b/sys/kern/subr_pool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_pool.c,v 1.175 2015/01/04 02:53:19 jsg Exp $ */
+/* $OpenBSD: subr_pool.c,v 1.176 2015/01/04 08:54:01 dlg Exp $ */
/* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */
/*-
@@ -232,7 +232,7 @@ pool_init(struct pool *pp, size_t size, u_int align, u_int ioff, int flags,
size = roundup(size, align);
if (palloc == NULL) {
- while (size * 8 > pgsize)
+ while (size > pgsize)
pgsize <<= 1;
if (pgsize > PAGE_SIZE) {