In vm_page_dirty(), assert that the page is not in the free queue(s).
This commit is contained in:
parent
d57270f768
commit
3fa24ec9f1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user