Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_object.c
| Show First 20 Lines • Show All 2,525 Lines • ▼ Show 20 Lines | TAILQ_FOREACH(obj, &vm_object_list, object_list) { | ||||
| kvo->kvo_resident = obj->resident_page_count; | kvo->kvo_resident = obj->resident_page_count; | ||||
| kvo->kvo_ref_count = obj->ref_count; | kvo->kvo_ref_count = obj->ref_count; | ||||
| kvo->kvo_shadow_count = atomic_load_int(&obj->shadow_count); | kvo->kvo_shadow_count = atomic_load_int(&obj->shadow_count); | ||||
| kvo->kvo_memattr = obj->memattr; | kvo->kvo_memattr = obj->memattr; | ||||
| kvo->kvo_active = 0; | kvo->kvo_active = 0; | ||||
| kvo->kvo_inactive = 0; | kvo->kvo_inactive = 0; | ||||
| kvo->kvo_laundry = 0; | kvo->kvo_laundry = 0; | ||||
| kvo->kvo_flags = 0; | kvo->kvo_flags = 0; | ||||
| kvo->kvo_path[0] = '\0'; | |||||
| if (!swap_only) { | if (!swap_only) { | ||||
| vm_page_iter_init(&pages, obj); | vm_page_iter_init(&pages, obj); | ||||
| VM_RADIX_FOREACH(m, &pages) { | VM_RADIX_FOREACH(m, &pages) { | ||||
| /* | /* | ||||
| * 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 | ||||
| ▲ Show 20 Lines • Show All 307 Lines • Show Last 20 Lines | |||||