Don't scan pages that are above the passed in high value. This is a partial
MFC of rev 1.48; the rest of that change is incomplete and not appropriate for merging yet. Approved by: re
This commit is contained in:
parent
9c393c5830
commit
b82ceba934
@ -407,7 +407,10 @@ vm_page_alloc_contig(vm_pindex_t npages, vm_paddr_t low, vm_paddr_t high,
|
||||
panic("vm_page_alloc_contig: boundary must be a power of 2");
|
||||
|
||||
for (pass = 0; pass < 2; pass++) {
|
||||
start = vm_page_array_size - npages + 1;
|
||||
if (atop(high) < vm_page_array_size)
|
||||
start = atop(high) - npages + 1;
|
||||
else
|
||||
start = vm_page_array_size - npages + 1;
|
||||
vm_page_lock_queues();
|
||||
retry:
|
||||
start--;
|
||||
|
Loading…
x
Reference in New Issue
Block a user