Page MenuHomeFreeBSD

vm_page: Reorder some fields
Needs ReviewPublic

Authored by markj on Jun 2 2025, 1:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 18, 3:30 AM
Unknown Object (File)
Sun, May 17, 4:47 PM
Unknown Object (File)
Thu, May 14, 5:48 PM
Unknown Object (File)
Wed, May 6, 10:48 AM
Unknown Object (File)
Wed, May 6, 3:52 AM
Unknown Object (File)
Mon, May 4, 2:01 PM
Unknown Object (File)
Tue, Apr 21, 5:31 AM
Unknown Object (File)
Apr 10 2026, 9:24 AM
Subscribers
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

With listq removed, UMA can start using the first 32 bytes of struct
vm_page to store a slab header. Reorder some fields to make this
possible. In particular, move pindex to offset 0 so that the pctrie
implementation doesn't need to add an offset to vm_page pointers.

It's ok for a noobj page consumer to use the ref_count and busy_lock
fields for their own purposes, so move those too.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 64582
Build 61466: arc lint + arc unit