Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_pager.h
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | |||||
static __inline int | static __inline int | ||||
vm_pager_populate(vm_object_t object, vm_pindex_t pidx, int fault_type, | vm_pager_populate(vm_object_t object, vm_pindex_t pidx, int fault_type, | ||||
vm_prot_t max_prot, vm_pindex_t *first, vm_pindex_t *last) | vm_prot_t max_prot, vm_pindex_t *first, vm_pindex_t *last) | ||||
{ | { | ||||
MPASS((object->flags & OBJ_POPULATE) != 0); | MPASS((object->flags & OBJ_POPULATE) != 0); | ||||
MPASS(pidx < object->size); | MPASS(pidx < object->size); | ||||
MPASS(object->paging_in_progress > 0); | MPASS(blockcount_read(&object->paging_in_progress) > 0); | ||||
return ((*pagertab[object->type]->pgo_populate)(object, pidx, | return ((*pagertab[object->type]->pgo_populate)(object, pidx, | ||||
fault_type, max_prot, first, last)); | fault_type, max_prot, first, last)); | ||||
} | } | ||||
/* | /* | ||||
* vm_pager_page_unswapped | * vm_pager_page_unswapped | ||||
* | * | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |