Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/vm_mmap.c
Show First 20 Lines • Show All 871 Lines • ▼ Show 20 Lines | retry: | ||||
VM_OBJECT_WLOCK(object); | VM_OBJECT_WLOCK(object); | ||||
} | } | ||||
if (object->type == OBJT_DEFAULT || | if (object->type == OBJT_DEFAULT || | ||||
object->type == OBJT_SWAP || | object->type == OBJT_SWAP || | ||||
object->type == OBJT_VNODE) { | object->type == OBJT_VNODE) { | ||||
pindex = OFF_TO_IDX(current->offset + | pindex = OFF_TO_IDX(current->offset + | ||||
(addr - current->start)); | (addr - current->start)); | ||||
m = vm_page_lookup(object, pindex); | m = vm_page_lookup(object, pindex); | ||||
if (m == NULL && | |||||
vm_page_is_cached(object, pindex)) | |||||
mincoreinfo = MINCORE_INCORE; | |||||
if (m != NULL && m->valid == 0) | if (m != NULL && m->valid == 0) | ||||
m = NULL; | m = NULL; | ||||
if (m != NULL) | if (m != NULL) | ||||
mincoreinfo = MINCORE_INCORE; | mincoreinfo = MINCORE_INCORE; | ||||
} | } | ||||
} | } | ||||
if (m != NULL) { | if (m != NULL) { | ||||
/* Examine other mappings to the page. */ | /* Examine other mappings to the page. */ | ||||
▲ Show 20 Lines • Show All 723 Lines • Show Last 20 Lines |