diff options
author | hsu <hsu@FreeBSD.org> | 2000-06-05 06:34:41 +0000 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 2000-06-05 06:34:41 +0000 |
commit | ce8639fd447a9f21000e1835ee65195c2fe15cec (patch) | |
tree | 731f1665b6a73be7adc1c426e495b75347404a92 /sys/vm | |
parent | d65592899eb950dfecec6616ebeb08a77ce8fccd (diff) | |
download | FreeBSD-src-ce8639fd447a9f21000e1835ee65195c2fe15cec.zip FreeBSD-src-ce8639fd447a9f21000e1835ee65195c2fe15cec.tar.gz |
Add missing increment of allocation counter.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_zone.c | 2 |
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; } |