mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 07:31:11 +00:00
Add missing increment of allocation counter.
This commit is contained in:
parent
5a890e22bf
commit
b10c4e187f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61272
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue