git: d9ce4c0b6617 - main - vm_page: Fix inconsistent use of VM_NOFREE_IMPORT_ORDER in vm_page_alloc_nofree_domain
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Jul 2024 17:26:29 UTC
The branch main has been updated by bnovkov: URL: https://cgit.FreeBSD.org/src/commit/?id=d9ce4c0b66170383a558b90ca835d31ee6d87927 commit d9ce4c0b66170383a558b90ca835d31ee6d87927 Author: Bojan Novković <bnovkov@FreeBSD.org> AuthorDate: 2024-07-30 17:17:18 +0000 Commit: Bojan Novković <bnovkov@FreeBSD.org> CommitDate: 2024-07-30 17:25:37 +0000 vm_page: Fix inconsistent use of VM_NOFREE_IMPORT_ORDER in vm_page_alloc_nofree_domain Pass VM_NOFREE_IMPORT_ORDER to vm_phys_alloc_pages instead of VM_LEVEL_0_ORDER when allocating a higher-order page for the NOFREE page allocator. Reported by: alc Fixes: a8693e8 --- sys/vm/vm_page.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index ff9df7f4a9fc..0f41ea5a6bb5 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -2528,7 +2528,7 @@ vm_page_alloc_nofree_domain(int domain, int req) return (NULL); } nqp->ma = vm_phys_alloc_pages(domain, VM_FREEPOOL_DEFAULT, - VM_LEVEL_0_ORDER); + VM_NOFREE_IMPORT_ORDER); if (nqp->ma == NULL) { vm_domain_freecnt_inc(vmd, 1 << VM_NOFREE_IMPORT_ORDER); vm_domain_free_unlock(vmd);