HomeFreeBSD

uma: Deduplicate uma_small_alloc

Description

uma: Deduplicate uma_small_alloc

This commit refactors the UMA small alloc code and
removes most UMA machine-dependent code.
The existing machine-dependent uma_small_alloc code is almost identical
across all architectures, except for powerpc where using the direct
map addresses involved extra steps in some cases.

The MI/MD split was replaced by a default uma_small_alloc
implementation that can be overridden by architecture-specific code by
defining the UMA_MD_SMALL_ALLOC symbol. Furthermore, UMA_USE_DMAP was
introduced to replace most UMA_MD_SMALL_ALLOC uses.

Reviewed by: markj, kib
Approved by: markj (mentor)
Differential Revision: https://reviews.freebsd.org/D45084

Details

Provenance
bnovkovAuthored on May 3 2024, 4:48 PM
Reviewer
markj
Differential Revision
D45084: uma: deduplicate uma_small_alloc
Parents
rG9b1de7e4844d: vt/sc: retire logic to select vt(4) by default for UEFI boot
Branches
Unknown
Tags
Unknown