HomeFreeBSD

Change vm_page_unwire() such that it (1) accepts PQ_NONE as the specified

Description

Change vm_page_unwire() such that it (1) accepts PQ_NONE as the specified
queue and (2) returns a Boolean indicating whether the page's wire count
transitioned to zero.

Exploit this change in vfs_vmio_release() to avoid pointlessly enqueueing
a page that is about to be freed.

(An earlier version of this change was developed by attilio@ and kmacy@.
Any errors in this version are my own.)

Reviewed by: kib
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
alcAuthored on
Reviewer
kib
Parents
rS288121: Work around clang emitting libcalls to __atomic_add_fetch() and friends
Branches
Unknown
Tags
Unknown