vm_page_alloc and contigmalloc1:

Verify that free pages are not dirty.

Submitted by:	dillon
This commit is contained in:
Alan Cox 1999-08-20 06:32:00 +00:00
parent 45a033b14f
commit 14068cfed2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50075

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91
* $Id: vm_page.c,v 1.139 1999/08/17 05:08:39 alc Exp $
* $Id: vm_page.c,v 1.140 1999/08/17 18:09:01 alc Exp $
*/
/*
@ -855,7 +855,7 @@ vm_page_alloc(object, pindex, page_req)
m->act_count = 0;
m->busy = 0;
m->valid = 0;
m->dirty = 0;
KASSERT(m->dirty == 0, ("vm_page_alloc: free/cache page %p was dirty", m));
m->queue = PQ_NONE;
/*
@ -1761,7 +1761,7 @@ contigmalloc1(size, type, flags, low, high, alignment, boundary, map)
cnt.v_free_count--;
m->valid = VM_PAGE_BITS_ALL;
m->flags = 0;
m->dirty = 0;
KASSERT(m->dirty == 0, ("contigmalloc1: page %p was dirty", m));
m->wire_count = 0;
m->busy = 0;
m->queue = PQ_NONE;