The branch stable/14 has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=1f85f062768dd2c5be8bd78af56e72dd5f95950e

commit 1f85f062768dd2c5be8bd78af56e72dd5f95950e
Author:     Minsoo Choo <minsoochoo0...@proton.me>
AuthorDate: 2024-04-10 12:49:26 +0000
Commit:     Mark Johnston <ma...@freebsd.org>
CommitDate: 2024-04-17 14:33:26 +0000

    vm_reserv_reclaim_contig: Return NULL not false
    
    Reviewed by:    dougm, zlei
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D44667
    
    (cherry picked from commit 989a2cf19d053954f0bad28790114a374b05c9c1)
---
 sys/vm/vm_reserv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/vm/vm_reserv.c b/sys/vm/vm_reserv.c
index 7b4a39a34906..640a580e7edb 100644
--- a/sys/vm/vm_reserv.c
+++ b/sys/vm/vm_reserv.c
@@ -1192,7 +1192,7 @@ vm_reserv_find_contig(vm_reserv_t rv, int npages, int lo,
  * Searches the partially populated reservation queue for the least recently
  * changed reservation with free pages that satisfy the given request for
  * contiguous physical memory.  If a satisfactory reservation is found, it is
- * broken.  Returns true if a reservation is broken and false otherwise.
+ * broken.  Returns a page if a reservation is broken and NULL otherwise.
  */
 vm_page_t
 vm_reserv_reclaim_contig(int domain, u_long npages, vm_paddr_t low,
@@ -1208,7 +1208,7 @@ vm_reserv_reclaim_contig(int domain, u_long npages, 
vm_paddr_t low,
        KASSERT(powerof2(alignment), ("alignment is not a power of 2"));
        KASSERT(powerof2(boundary), ("boundary is not a power of 2"));
        if (npages > VM_LEVEL_0_NPAGES - 1)
-               return (false);
+               return (NULL);
        size = npages << PAGE_SHIFT;
        /* 
         * Ensure that a free range starting at a boundary-multiple

Reply via email to