From 96e683d754d7ebcc362a348a0a3fc57f8a8cdb74 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 18 Dec 2000 20:12:13 +0000 Subject: 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 --- sys/vm/vm_page.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 9c868fc..1b2db6e 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -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); } -- cgit v1.1