aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2021-10-20 00:23:39 +0000
committerMark Johnston <markj@FreeBSD.org>2021-10-20 01:22:56 +0000
commita4667e09e6520dc2c4b0b988051f060fed695a91 (patch)
treeed9b1a6922f2fa0a0c125f2d06242a88a2eb5568 /sys/compat/linuxkpi
parentb498f71bc56af0069d9a4685b8385ee613a00727 (diff)
downloadsrc-a4667e09e6520dc2c4b0b988051f060fed695a91.tar.gz
src-a4667e09e6520dc2c4b0b988051f060fed695a91.zip
Convert vm_page_alloc() callers to use vm_page_alloc_noobj().
Remove page zeroing code from consumers and stop specifying VM_ALLOC_NOOBJ. In a few places, also convert an allocation loop to simply use VM_ALLOC_WAITOK. Similarly, convert vm_page_alloc_domain() callers. Note that callers are now responsible for assigning the pindex. Reviewed by: alc, hselasky, kib MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D31986
Diffstat (limited to 'sys/compat/linuxkpi')
-rw-r--r--sys/compat/linuxkpi/common/src/linux_page.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/src/linux_page.c b/sys/compat/linuxkpi/common/src/linux_page.c
index 8da4736ab7d5..f712c0c155a4 100644
--- a/sys/compat/linuxkpi/common/src/linux_page.c
+++ b/sys/compat/linuxkpi/common/src/linux_page.c
@@ -97,7 +97,7 @@ linux_alloc_pages(gfp_t flags, unsigned int order)
if ((flags & M_ZERO) != 0)
req |= VM_ALLOC_ZERO;
if (order == 0 && (flags & GFP_DMA32) == 0) {
- page = vm_page_alloc(NULL, 0, req);
+ page = vm_page_alloc_noobj(req);
if (page == NULL)
return (NULL);
} else {