- Assert that the containing vm object is locked in

vm_page_set_validclean().  (This function reads and modifies the
   vm page's valid field, which is synchronized by the lock on the
   containing vm object.)
This commit is contained in:
Alan Cox 2003-10-21 19:36:51 +00:00
parent bbda0368ba
commit 0d42c05ff4

View File

@ -1521,6 +1521,7 @@ vm_page_set_validclean(vm_page_t m, int base, int size)
int endoff;
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
VM_OBJECT_LOCK_ASSERT(m->object, MA_OWNED);
if (size == 0) /* handle degenerate case */
return;