summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_zone.c
diff options
context:
space:
mode:
authorhsu <hsu@FreeBSD.org>2000-06-05 06:34:41 +0000
committerhsu <hsu@FreeBSD.org>2000-06-05 06:34:41 +0000
commitce8639fd447a9f21000e1835ee65195c2fe15cec (patch)
tree731f1665b6a73be7adc1c426e495b75347404a92 /sys/vm/vm_zone.c
parentd65592899eb950dfecec6616ebeb08a77ce8fccd (diff)
downloadFreeBSD-src-ce8639fd447a9f21000e1835ee65195c2fe15cec.zip
FreeBSD-src-ce8639fd447a9f21000e1835ee65195c2fe15cec.tar.gz
Add missing increment of allocation counter.
Diffstat (limited to 'sys/vm/vm_zone.c')
-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 b1007dc..d7bbfaa 100644
--- a/sys/vm/vm_zone.c
+++ b/sys/vm/vm_zone.c
@@ -371,6 +371,7 @@ _zget(vm_zone_t z)
(char *) item += z->zsize;
}
z->zfreecnt += nitems;
+ z->znalloc++;
} else if (z->zfreecnt > 0) {
item = z->zitems;
z->zitems = ((void **) item)[0];
@@ -380,6 +381,7 @@ _zget(vm_zone_t z)
((void **) item)[1] = 0;
#endif
z->zfreecnt--;
+ z->znalloc++;
} else {
item = NULL;
}
OpenPOWER on IntegriCloud