mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-23 02:04:46 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85070
|
@ -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 a new issue