Assert that the vm object is locked on entry to dev_pager_getpages().

This commit is contained in:
alc 2003-06-24 19:48:34 +00:00
parent 270ae60a45
commit cbc68243ab

View File

@ -212,6 +212,7 @@ dev_pager_getpages(object, m, count, reqpage)
d_mmap_t *mapfunc;
int prot;
VM_OBJECT_LOCK_ASSERT(object, MA_OWNED);
dev = object->handle;
offset = m[reqpage]->pindex;
VM_OBJECT_UNLOCK(object);