diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2014-09-05 03:13:53 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2014-09-05 03:13:53 +0000 |
commit | f19a6bbee7bc424c1250d6b229e8ce339180bc36 (patch) | |
tree | 8d13661ba1041983b4e8d5fb3dc2987ba591c163 /sys/kern/subr_pool.c | |
parent | c7f0a356fc55bdcd93733bb01a4f1f7ddaaac856 (diff) |
KASSERT that the page header pool will use in page headers.
Diffstat (limited to 'sys/kern/subr_pool.c')
-rw-r--r-- | sys/kern/subr_pool.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c index 2ab398290ab..8d6307dd22d 100644 --- a/sys/kern/subr_pool.c +++ b/sys/kern/subr_pool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_pool.c,v 1.149 2014/09/04 00:36:00 dlg Exp $ */ +/* $OpenBSD: subr_pool.c,v 1.150 2014/09/05 03:13:52 dlg Exp $ */ /* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */ /*- @@ -366,6 +366,9 @@ pool_init(struct pool *pp, size_t size, u_int align, u_int ioff, int flags, pool_init(&phpool, sizeof(struct pool_item_header), 0, 0, 0, "phpool", NULL); pool_setipl(&phpool, IPL_HIGH); + + /* make sure phpool wont "recurse" */ + KASSERT(ISSET(phpool.pr_roflags, PR_PHINPAGE)); } /* pglistalloc/constraint parameters */ |