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:
Matthew Dillon 2001-10-17 17:34:34 +00:00
parent d335cbd39f
commit b386828956
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85070

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;