diff options
author | phk <phk@FreeBSD.org> | 2000-12-18 20:12:13 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-12-18 20:12:13 +0000 |
commit | 96e683d754d7ebcc362a348a0a3fc57f8a8cdb74 (patch) | |
tree | 5e62a46c84fcba3a6753fe3bfa72fdc0728be877 | |
parent | 0c949560a12dd18943b66fe09bd06d3c34e5cf7a (diff) | |
download | FreeBSD-src-96e683d754d7ebcc362a348a0a3fc57f8a8cdb74.zip FreeBSD-src-96e683d754d7ebcc362a348a0a3fc57f8a8cdb74.tar.gz |
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>
-rw-r--r-- | sys/vm/vm_page.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |