In vm_page_dirty(), assert that the page is not in the free queue(s).

This commit is contained in:
Alan Cox 2003-02-24 17:30:45 +00:00
parent d57270f768
commit 3fa24ec9f1

View File

@ -447,6 +447,8 @@ vm_page_dirty(vm_page_t m)
{
KASSERT(m->queue - m->pc != PQ_CACHE,
("vm_page_dirty: page in cache!"));
KASSERT(m->queue - m->pc != PQ_FREE,
("vm_page_dirty: page is free!"));
m->dirty = VM_PAGE_BITS_ALL;
}