Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_page.c
Show First 20 Lines • Show All 3,375 Lines • ▼ Show 20 Lines | vm_page_pqstate_commit_request(vm_page_t m, vm_page_astate_t *old, | ||||
vm_page_pqbatch_submit(m, new.queue); | vm_page_pqbatch_submit(m, new.queue); | ||||
return (true); | return (true); | ||||
} | } | ||||
/* | /* | ||||
* A generic queue state update function. This handles more cases than the | * A generic queue state update function. This handles more cases than the | ||||
* specialized functions above. | * specialized functions above. | ||||
*/ | */ | ||||
static bool | bool | ||||
vm_page_pqstate_commit(vm_page_t m, vm_page_astate_t *old, vm_page_astate_t new) | vm_page_pqstate_commit(vm_page_t m, vm_page_astate_t *old, vm_page_astate_t new) | ||||
{ | { | ||||
if (old->_bits == new._bits) | if (old->_bits == new._bits) | ||||
return (true); | return (true); | ||||
if (old->queue != PQ_NONE && new.queue != old->queue) { | if (old->queue != PQ_NONE && new.queue != old->queue) { | ||||
if (!vm_page_pqstate_commit_dequeue(m, old, new)) | if (!vm_page_pqstate_commit_dequeue(m, old, new)) | ||||
▲ Show 20 Lines • Show All 1,843 Lines • Show Last 20 Lines |