Assert that the containing vm object is locked in vm_page_flash().

This commit is contained in:
alc 2004-10-25 19:52:44 +00:00
parent 7a008b17d1
commit 50d63268a9

View File

@ -312,6 +312,8 @@ vm_page_busy(vm_page_t m)
void
vm_page_flash(vm_page_t m)
{
VM_OBJECT_LOCK_ASSERT(m->object, MA_OWNED);
if (m->flags & PG_WANTED) {
vm_page_flag_clear(m, PG_WANTED);
wakeup(m);