]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Factor out the kmem contig page alloc and reclamation code.
authorMark Johnston <markj@FreeBSD.org>
Tue, 21 Apr 2020 16:01:44 +0000 (16:01 +0000)
committerMark Johnston <markj@FreeBSD.org>
Tue, 21 Apr 2020 16:01:44 +0000 (16:01 +0000)
commit33655d9546035e232f21dbde212e6ead810f67f3
treedead8e442d0d1804a782f2dbaf7a013d3e794c16
parent303b77029b66fec6a23f7639acf91b7a8aec1464
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
sys/vm/vm_kern.c