summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_pager.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-09-08 20:44:49 +0000
committerdyson <dyson@FreeBSD.org>1996-09-08 20:44:49 +0000
commit62b009f8b179a95d34929daf49b97c99e358547a (patch)
treea5425fa8640477891a0e0f4021726b6e38c00d71 /sys/vm/vm_pager.c
parentb9342257a10d75fd22b9d4495acaf88d88a0728a (diff)
downloadFreeBSD-src-62b009f8b179a95d34929daf49b97c99e358547a.zip
FreeBSD-src-62b009f8b179a95d34929daf49b97c99e358547a.tar.gz
Addition of page coloring support. Various levels of coloring are afforded.
The default level works with minimal overhead, but one can also enable full, efficient use of a 512K cache. (Parameters can be generated to support arbitrary cache sizes also.)
Diffstat (limited to 'sys/vm/vm_pager.c')
-rw-r--r--sys/vm/vm_pager.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c
index c7c9964..b8db9ac 100644
--- a/sys/vm/vm_pager.c
+++ b/sys/vm/vm_pager.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_pager.c,v 1.22 1996/05/03 21:01:53 phk Exp $
+ * $Id: vm_pager.c,v 1.23 1996/05/18 03:38:05 dyson Exp $
*/
/*
@@ -298,6 +298,7 @@ getpbuf()
bzero(bp, sizeof *bp);
bp->b_rcred = NOCRED;
bp->b_wcred = NOCRED;
+ bp->b_qindex = QUEUE_NONE;
bp->b_data = (caddr_t) (MAXPHYS * (bp - swbuf)) + swapbkva;
bp->b_vnbufs.le_next = NOLIST;
return bp;
@@ -323,6 +324,7 @@ trypbuf()
bzero(bp, sizeof *bp);
bp->b_rcred = NOCRED;
bp->b_wcred = NOCRED;
+ bp->b_qindex = QUEUE_NONE;
bp->b_data = (caddr_t) (MAXPHYS * (bp - swbuf)) + swapbkva;
bp->b_vnbufs.le_next = NOLIST;
return bp;
OpenPOWER on IntegriCloud