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
81c746d143
commit
a31868c3f8
@ -228,6 +228,8 @@ contigmalloc1(
|
||||
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 New Issue
Block a user