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:
Poul-Henning Kamp 2000-12-18 20:12:13 +00:00
parent 589f6ed8ce
commit 065b25803d

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