Page MenuHomeFreeBSD

Implement atomic state updates using the new vm_page_astate_t structure.
ClosedPublic

Authored by markj on Dec 10 2019, 7:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 2, 6:54 AM
Unknown Object (File)
Mon, Feb 2, 3:43 AM
Unknown Object (File)
Jan 16 2026, 11:19 AM
Unknown Object (File)
Jan 13 2026, 8:26 PM
Unknown Object (File)
Jan 8 2026, 11:52 AM
Unknown Object (File)
Jan 8 2026, 5:42 AM
Unknown Object (File)
Jan 5 2026, 8:26 PM
Unknown Object (File)
Nov 22 2025, 3:10 AM
Subscribers

Details

Summary

Introduce primitives vm_page_astate_load() and vm_page_astate_fcmpset()
to operate on the 32-bit per-page atomic state. Modify
vm_page_pqstate_fcmpset() to use them. No functional change intended.

Introduce PGA_QUEUE_OP_MASK, a subset of PGA_QUEUE_STATE_MASK that only
includes queue operation flags. This will be used in subsequent
patches.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28079
Build 26224: arc lint + arc unit

Event Timeline

Looks much nicer!

sys/vm/vm_page.h
759

Shouldn't this be * NBBY?

markj marked an inline comment as done.

Fix the aflags shift definition, which happened to work regardless on
little-endian systems.

This revision is now accepted and ready to land.Dec 11 2019, 10:03 PM