summaryrefslogtreecommitdiff
path: root/sys/kern/subr_pool.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2008-12-23 08:15:07 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2008-12-23 08:15:07 +0000
commita353cf8dee7350eb8ba5f1a0844136faa7c80036 (patch)
tree8e73e5f606aca335caf578378dc2cb489e3bcc18 /sys/kern/subr_pool.c
parent5231b3e8fcbd6c0cb69706739a553991ba10088c (diff)
i got emptypages and fullpages mixed up in pool_walk. this now shows items
in fullpages that have been allocated. spotted by claudio@
Diffstat (limited to 'sys/kern/subr_pool.c')
-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 a5491e7022c..10169d8de22 100644
--- a/sys/kern/subr_pool.c
+++ b/sys/kern/subr_pool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_pool.c,v 1.74 2008/12/23 06:53:12 dlg Exp $ */
+/* $OpenBSD: subr_pool.c,v 1.75 2008/12/23 08:15:06 dlg Exp $ */
/* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */
/*-
@@ -1279,7 +1279,7 @@ pool_walk(struct pool *pp, void (*func)(void *))
caddr_t cp;
int n;
- LIST_FOREACH(ph, &pp->pr_emptypages, ph_pagelist) {
+ LIST_FOREACH(ph, &pp->pr_fullpages, ph_pagelist) {
cp = ph->ph_colored;
n = ph->ph_nmissing;