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:
dillon 2001-10-17 17:34:34 +00:00
parent 81c746d143
commit a31868c3f8

View File

@ -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;