HomeFreeBSD

Factor out the kmem contig page alloc and reclamation code.

Description

Factor out the kmem contig page alloc and reclamation code.

kmem_alloc_attr_domain() and kmem_alloc_contig_domain() duplicated each
other's page allocation and reclamation logic. Place it in a single
function to make it easier to add additional consumers. No functional
change intended.

Reviewed by: jeff, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D24475

Details

Provenance
markjAuthored on Apr 21 2020, 4:01 PM
Parents
rG303b77029b66: Minimize conditional compilation for handling of M_EXEC.
Branches
Unknown
Tags
Unknown

Event Timeline