From 85f2a0c91e3aa0f60b3758969f2f74170c980bb1 Mon Sep 17 00:00:00 2001 From: Max Laier Date: Fri, 19 Nov 2010 04:30:33 +0000 Subject: [PATCH] Off by one page in vm_reserv_reclaim_contig(): Also reclaim reservations with only a single free page if that satisfies the requested size. MFC after: 3 days Reviewed by: alc --- sys/vm/vm_reserv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/vm/vm_reserv.c b/sys/vm/vm_reserv.c index f5f44f7d281f..d6cbc83f227b 100644 --- a/sys/vm/vm_reserv.c +++ b/sys/vm/vm_reserv.c @@ -654,7 +654,8 @@ vm_reserv_reclaim_contig(vm_paddr_t size, vm_paddr_t low, vm_paddr_t high, ((pa ^ (pa + size - 1)) & ~(boundary - 1)) != 0) pa_length = 0; - } else if (pa_length >= size) { + } + if (pa_length >= size) { vm_reserv_reclaim(rv); return (TRUE); }