Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/vm_object.c
Show First 20 Lines • Show All 2,323 Lines • ▼ Show 20 Lines | TAILQ_FOREACH(m, &obj->memq, listq) { | ||||
* A page may belong to the object but be | * A page may belong to the object but be | ||||
* dequeued and set to PQ_NONE while the | * dequeued and set to PQ_NONE while the | ||||
* object lock is not held. This makes the | * object lock is not held. This makes the | ||||
* reads of m->queue below racy, and we do not | * reads of m->queue below racy, and we do not | ||||
* count pages set to PQ_NONE. However, this | * count pages set to PQ_NONE. However, this | ||||
* sysctl is only meant to give an | * sysctl is only meant to give an | ||||
* approximation of the system anyway. | * approximation of the system anyway. | ||||
*/ | */ | ||||
if (m->queue == PQ_ACTIVE) | if (vm_page_active(m)) | ||||
kvo.kvo_active++; | kvo.kvo_active++; | ||||
else if (m->queue == PQ_INACTIVE) | else if (vm_page_inactive(m)) | ||||
kvo.kvo_inactive++; | kvo.kvo_inactive++; | ||||
} | } | ||||
kvo.kvo_vn_fileid = 0; | kvo.kvo_vn_fileid = 0; | ||||
kvo.kvo_vn_fsid = 0; | kvo.kvo_vn_fsid = 0; | ||||
freepath = NULL; | freepath = NULL; | ||||
fullpath = ""; | fullpath = ""; | ||||
vp = NULL; | vp = NULL; | ||||
▲ Show 20 Lines • Show All 297 Lines • Show Last 20 Lines |