summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authordt <dt@FreeBSD.org>1999-09-30 07:35:50 +0000
committerdt <dt@FreeBSD.org>1999-09-30 07:35:50 +0000
commitb99bff68d4cc21afd5c331e307a713a892af671c (patch)
tree54c0b8239b4ad55381d2c6de402fb06e5ce88663 /sys/vm
parentf3bceef566234685610dbdd666fe891f89f4501d (diff)
downloadFreeBSD-src-b99bff68d4cc21afd5c331e307a713a892af671c.zip
FreeBSD-src-b99bff68d4cc21afd5c331e307a713a892af671c.tar.gz
Plug an accounting leak: count pages in ZONE_INTERRUPT zones as wired.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_zone.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_zone.c b/sys/vm/vm_zone.c
index 3befc91..dab39a7 100644
--- a/sys/vm/vm_zone.c
+++ b/sys/vm/vm_zone.c
@@ -20,6 +20,7 @@
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/sysctl.h>
+#include <sys/vmmeter.h>
#include <vm/vm.h>
#include <vm/vm_object.h>
@@ -305,6 +306,7 @@ _zget(vm_zone_t z)
bzero((caddr_t) zkva, PAGE_SIZE);
z->zpagecount++;
zone_kmem_pages++;
+ cnt.v_wire_count++;
}
nitems = (i * PAGE_SIZE) / z->zsize;
} else {
OpenPOWER on IntegriCloud