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)
Fri, Dec 27, 1:30 AM
Unknown Object (File)
Sep 22 2024, 4:25 PM
Unknown Object (File)
Sep 18 2024, 6:18 AM
Unknown Object (File)
Sep 17 2024, 5:42 PM
Unknown Object (File)
Sep 17 2024, 7:36 AM
Unknown Object (File)
Aug 15 2024, 8:46 AM
Unknown Object (File)
Aug 12 2024, 10:08 PM
Unknown Object (File)
Aug 10 2024, 4:08 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

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