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)
Sat, Nov 22, 3:10 AM
Unknown Object (File)
Thu, Nov 13, 10:23 PM
Unknown Object (File)
Oct 20 2025, 10:41 AM
Unknown Object (File)
Oct 20 2025, 10:41 AM
Unknown Object (File)
Oct 20 2025, 10:41 AM
Unknown Object (File)
Oct 20 2025, 10:41 AM
Unknown Object (File)
Oct 19 2025, 8:14 PM
Unknown Object (File)
Oct 15 2025, 10:44 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Looks much nicer!

sys/vm/vm_page.h
759 ↗(On Diff #65465)

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