Page MenuHomeFreeBSD

Use vm_page_unwire_noq() instead of vm_page_unwire(PQ_NONE).
ClosedPublic

Authored by markj on May 30 2019, 4:36 PM.
Tags
None
Referenced Files
F146401969: D20470.id.diff
Mon, Mar 2, 10:13 AM
Unknown Object (File)
Sat, Feb 28, 7:00 AM
Unknown Object (File)
Tue, Feb 24, 11:39 AM
Unknown Object (File)
Fri, Feb 13, 8:51 AM
Unknown Object (File)
Fri, Feb 13, 6:38 AM
Unknown Object (File)
Fri, Feb 13, 12:02 AM
Unknown Object (File)
Jan 27 2026, 1:38 PM
Unknown Object (File)
Jan 26 2026, 10:09 AM
Subscribers

Details

Summary

For managed pages, these two calls are not equivalent:
vm_page_unwire(PQ_NONE) will remove the page from its page queue, if
any, while vm_page_unwire_noq() leaves it alone. However, the existing
callers of vm_page_unwire(PQ_NONE) are applying it to fictitious or
unmanaged pages, so there should be no functional impact.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24602
Build 23385: arc lint + arc unit

Event Timeline

kib added inline comments.
sys/vm/vm_glue.c
233

Just a note that the page is managed. It is because it is freed immediately after, we can use vm_page_unwire_noq().

This revision is now accepted and ready to land.May 30 2019, 5:27 PM
sys/vm/vm_glue.c
233

This call was added in D19247, so it will not be committed with the rest of this diff.

This revision was automatically updated to reflect the committed changes.