mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 22:27:47 -04:00
Plug an accounting leak: count pages in ZONE_INTERRUPT zones as wired.
This commit is contained in:
parent
28149effa7
commit
62dc52f5dd
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue