mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
contigmalloc1() could cause the vm_page_zero_count to become incorrect.
Properly track the count. Submitted by: mark tinguely <tinguely@web.cs.ndsu.nodak.edu>
This commit is contained in:
parent
d335cbd39f
commit
b386828956
1 changed files with 2 additions and 0 deletions
|
|
@ -228,6 +228,8 @@ again1:
|
|||
vm_page_queues[m->queue].lcnt--;
|
||||
cnt.v_free_count--;
|
||||
m->valid = VM_PAGE_BITS_ALL;
|
||||
if (m->flags & PG_ZERO)
|
||||
vm_page_zero_count--;
|
||||
m->flags = 0;
|
||||
KASSERT(m->dirty == 0, ("contigmalloc1: page %p was dirty", m));
|
||||
m->wire_count = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue