]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vm_page: Stop handling VM_ALLOC_NOOBJ in vm_page_alloc_domain_after()
authorMark Johnston <markj@FreeBSD.org>
Wed, 20 Oct 2021 00:25:14 +0000 (20:25 -0400)
committerMark Johnston <markj@FreeBSD.org>
Wed, 20 Oct 2021 01:22:56 +0000 (21:22 -0400)
commitc40cf9bc62718241d4afdb3ef48a68052cb37b50
treefed67efd8204b402ae407d0c77162c3168628572
parent84c3922243a7b7fd510dcfb100aec59c878c57d0
vm_page: Stop handling VM_ALLOC_NOOBJ in vm_page_alloc_domain_after()

This makes the allocator simpler since it can assume object != NULL.
Also modify the function to unconditionally preserve PG_ZERO, so
VM_ALLOC_ZERO is effectively ignored (and still must be implemented by
the caller for now).

Reviewed by: alc, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32033
sys/vm/vm_page.c
sys/vm/vm_page.h