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
This commit is contained in:
Max Laier 2010-11-19 04:30:33 +00:00
parent 698ec346a1
commit 85f2a0c91e

View File

@ -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);
}