Fix floppy drives on machines with lots of RAM.

The fix works by reverting the ordering of free memory so that the
chances of contig_malloc() succeeding increases.

PR:		23291
Submitted by:	Andrew Atrens <atrens@nortel.ca>
This commit is contained in:
phk 2000-12-18 20:12:13 +00:00
parent 0c949560a1
commit 96e683d754

View File

@ -161,7 +161,7 @@ vm_add_new_page(pa)
m->flags = 0;
m->pc = (pa >> PAGE_SHIFT) & PQ_L2_MASK;
m->queue = m->pc + PQ_FREE;
TAILQ_INSERT_HEAD(&vm_page_queues[m->queue].pl, m, pageq);
TAILQ_INSERT_TAIL(&vm_page_queues[m->queue].pl, m, pageq);
vm_page_queues[m->queue].lcnt++;
return (m);
}