aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_mbuf.c
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/kern/kern_mbuf.c
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/kern/kern_mbuf.c')
-rw-r--r--sys/kern/kern_mbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c
index 36316f2bc3ff..d1f2fd2bd9e4 100644
--- a/sys/kern/kern_mbuf.c
+++ b/sys/kern/kern_mbuf.c
@@ -1624,8 +1624,8 @@ mb_alloc_ext_plus_pages(int len, int how)
npgs = howmany(len, PAGE_SIZE);
for (i = 0; i < npgs; i++) {
do {
- pg = vm_page_alloc(NULL, 0, VM_ALLOC_NORMAL |
- VM_ALLOC_NOOBJ | VM_ALLOC_NODUMP | VM_ALLOC_WIRED);
+ pg = vm_page_alloc_noobj(VM_ALLOC_NODUMP |
+ VM_ALLOC_WIRED);
if (pg == NULL) {
if (how == M_NOWAIT) {
m->m_epg_npgs = i;