diff options
author | Doug Moore <dougm@FreeBSD.org> | 2021-12-24 08:47:21 +0000 |
---|---|---|
committer | Doug Moore <dougm@FreeBSD.org> | 2021-12-24 08:47:21 +0000 |
commit | 184c63db3c949d8ba766dc7b2bd2f082404e169d (patch) | |
tree | 59b2eff3aa3c0e6603ee3c7407591db79904085c | |
parent | b7ec0d268b73ce20c4f785d21cde9b174c91a553 (diff) | |
download | src-184c63db3c949d8ba766dc7b2bd2f082404e169d.tar.gz src-184c63db3c949d8ba766dc7b2bd2f082404e169d.zip |
Fix clerical error in page alloc
Fix a very recent change that introduced a page accounting error in
case of a reserveration being broken.
Reviewed by: alc
Fixes: fb38b29b5609 (page_alloc_br) vm_page: Remove extra test, dup code from page alloc
Differential Revision: https://reviews.freebsd.org/D33645
-rw-r--r-- | sys/vm/vm_page.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index c24da96f4312..03351b0ad3dd 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -2186,11 +2186,11 @@ vm_page_find_contig_domain(int domain, int req, u_long npages, vm_paddr_t low, vm_page_t m_ret; vmd = VM_DOMAIN(domain); - if (!vm_domain_allocate(vmd, req, npages)) - return (NULL); #if VM_NRESERVLEVEL > 0 again: #endif + if (!vm_domain_allocate(vmd, req, npages)) + return (NULL); /* * Try to allocate the pages from the free page queues. */ |