Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_object.c
Show First 20 Lines • Show All 1,206 Lines • ▼ Show 20 Lines | next_page: | ||||
} | } | ||||
/* | /* | ||||
* If the page is not in a normal state, skip it. | * If the page is not in a normal state, skip it. | ||||
*/ | */ | ||||
if (tm->valid != VM_PAGE_BITS_ALL) | if (tm->valid != VM_PAGE_BITS_ALL) | ||||
goto next_pindex; | goto next_pindex; | ||||
vm_page_lock(tm); | vm_page_lock(tm); | ||||
if (vm_page_held(tm)) { | if (vm_page_wired(tm)) { | ||||
vm_page_unlock(tm); | vm_page_unlock(tm); | ||||
goto next_pindex; | goto next_pindex; | ||||
} | } | ||||
KASSERT((tm->flags & PG_FICTITIOUS) == 0, | KASSERT((tm->flags & PG_FICTITIOUS) == 0, | ||||
("vm_object_madvise: page %p is fictitious", tm)); | ("vm_object_madvise: page %p is fictitious", tm)); | ||||
KASSERT((tm->oflags & VPO_UNMANAGED) == 0, | KASSERT((tm->oflags & VPO_UNMANAGED) == 0, | ||||
("vm_object_madvise: page %p is not managed", tm)); | ("vm_object_madvise: page %p is not managed", tm)); | ||||
if (vm_page_busied(tm)) { | if (vm_page_busied(tm)) { | ||||
▲ Show 20 Lines • Show All 1,464 Lines • Show Last 20 Lines |