Page MenuHomeFreeBSD

Remove the relatively unused us_keg field. Store the zone along withthe slab in the page for malloc.
ClosedPublic

Authored by jeff on Nov 26 2019, 10:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 26, 7:11 AM
Unknown Object (File)
Fri, Sep 26, 7:06 AM
Unknown Object (File)
Fri, Sep 26, 7:01 AM
Unknown Object (File)
Fri, Sep 26, 7:00 AM
Unknown Object (File)
Sun, Sep 21, 11:39 PM
Unknown Object (File)
Fri, Sep 19, 12:36 PM
Unknown Object (File)
Thu, Sep 18, 8:20 PM
Unknown Object (File)
Sep 12 2025, 6:57 PM
Subscribers

Details

Summary

This hasn't been necessary since multi keg zones were removed.

Catch up to other NOOBJ page users and add uma to the union for clarity. Malloc still wants the zone to free to but conveniently we have space for another pointer.

Diff Detail

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

Event Timeline

jeff retitled this revision from Remove the relatively unused us_keg field. Store the zone along with the slab in the page for malloc. to Remove the relatively unused us_keg field. Store the zone along withthe slab in the page for malloc..Nov 26 2019, 10:26 PM
jeff edited the summary of this revision. (Show Details)
jeff added reviewers: glebius, markj, rlibby.
markj added inline comments.
sys/vm/uma_core.c
4185 ↗(On Diff #64919)

Fix indentation while here?

sys/vm/vm_page.h
223 ↗(On Diff #64919)

Is this field used anymore?

This revision is now accepted and ready to land.Nov 27 2019, 4:22 PM
sys/vm/vm_page.h
223 ↗(On Diff #64919)

You are right this is unused AFAICT.