Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/phys_pager.c
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | phys_pager_dealloc(vm_object_t object) | ||||
object->type = OBJT_DEAD; | object->type = OBJT_DEAD; | ||||
} | } | ||||
/* | /* | ||||
* Fill as many pages as vm_fault has allocated for us. | * Fill as many pages as vm_fault has allocated for us. | ||||
*/ | */ | ||||
static int | static int | ||||
phys_pager_getpages(vm_object_t object, vm_page_t *m, int count, int *rbehind, | phys_pager_getpages(vm_object_t object, vm_page_t *m, int count, int *rbehind, | ||||
int *rahead) | int *rahead, int prot) | ||||
{ | { | ||||
int i; | int i; | ||||
VM_OBJECT_ASSERT_WLOCKED(object); | VM_OBJECT_ASSERT_WLOCKED(object); | ||||
for (i = 0; i < count; i++) { | for (i = 0; i < count; i++) { | ||||
if (m[i]->valid == 0) { | if (m[i]->valid == 0) { | ||||
if ((m[i]->flags & PG_ZERO) == 0) | if ((m[i]->flags & PG_ZERO) == 0) | ||||
pmap_zero_page(m[i]); | pmap_zero_page(m[i]); | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |