HomeFreeBSD

vm_page: Add a new page allocator interface for unnamed pages

Description

vm_page: Add a new page allocator interface for unnamed pages

The diff adds vm_page_alloc_noobj() and vm_page_alloc_noobj_domain().
These mostly correspond to vm_page_alloc() and vm_page_alloc_domain()
when no VM object is specified, with the exception that they handle
VM_ALLOC_ZERO by zeroing the page, rather than by preserving PG_ZERO.

This simplifies callers and will permit simplification of the
vm_page_alloc_domain() definition.

Since the new allocator variant is similar to vm_page_alloc_freelist(),
implement both of them using a common backend allocator function. No
functional change intended.

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

Details

Provenance
markjAuthored on Oct 20 2021, 12:22 AM
Reviewer
alc
Differential Revision
D31985: vm_page: Add a new page allocator interface for anonymous pages
Parents
R10:a23e6a1078d6: vm_page: Move vm_page_alloc_check() to after page allocator definitions
Branches
Unknown
Tags
Unknown