diff options
author | eivind <eivind@FreeBSD.org> | 2002-03-05 18:20:58 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 2002-03-05 18:20:58 +0000 |
commit | e97f2e798cd6b011c8a34b6e666c28553db2b0b0 (patch) | |
tree | 114a36f1257384c4dd53771b46bcc55001f71d2c /sys/vm | |
parent | afefb7366e703a4eff31425a289fc3c1633f1cf4 (diff) | |
download | FreeBSD-src-e97f2e798cd6b011c8a34b6e666c28553db2b0b0.zip FreeBSD-src-e97f2e798cd6b011c8a34b6e666c28553db2b0b0.tar.gz |
* Move bswlist declaration and initialization from kern/vfs_bio.c to
vm/vm_pager.c, which is the only place it is used.
* Make the QUEUE_* definitions and bufqueues local to vfs_bio.c.
* constify buf_wmesg.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_pager.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c index 6cb678a..c95e1c6 100644 --- a/sys/vm/vm_pager.c +++ b/sys/vm/vm_pager.c @@ -194,12 +194,14 @@ vm_map_t pager_map; static int bswneeded; static vm_offset_t swapbkva; /* swap buffers kva */ struct mtx pbuf_mtx; +static TAILQ_HEAD(swqueue, buf) bswlist; void vm_pager_init() { struct pagerops **pgops; + TAILQ_INIT(&bswlist); /* * Initialize known pagers */ @@ -347,12 +349,15 @@ vm_pager_object_lookup(pg_list, handle) * initialize a physical buffer */ +/* + * XXX This probably belongs in vfs_bio.c + */ static void initpbuf(struct buf *bp) { bp->b_rcred = NOCRED; bp->b_wcred = NOCRED; - bp->b_qindex = QUEUE_NONE; + bp->b_qindex = 0; /* On no queue (QUEUE_NONE) */ bp->b_data = (caddr_t) (MAXPHYS * (bp - swbuf)) + swapbkva; bp->b_kvabase = bp->b_data; bp->b_kvasize = MAXPHYS; |