summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2001-10-17 17:34:34 +0000
committerdillon <dillon@FreeBSD.org>2001-10-17 17:34:34 +0000
commitcbc26091b28ec9163fa14f32c524f60dcfb6d9ed (patch)
tree7002bc53f690feef0e74cc58621a5500a1f21ad5 /sys/vm
parent3997cf6e358781dfc5f9f9ec0745fcfa9c9ffbe1 (diff)
downloadFreeBSD-src-cbc26091b28ec9163fa14f32c524f60dcfb6d9ed.zip
FreeBSD-src-cbc26091b28ec9163fa14f32c524f60dcfb6d9ed.tar.gz
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>
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_contig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_contig.c b/sys/vm/vm_contig.c
index 46216a2..c004d9e 100644
--- a/sys/vm/vm_contig.c
+++ b/sys/vm/vm_contig.c
@@ -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;
OpenPOWER on IntegriCloud