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

This commit is contained in:
Alan Cox 2003-06-24 19:48:34 +00:00
parent 07e57fee7d
commit a8ab48702b

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);