diff options
author | dg <dg@FreeBSD.org> | 1994-08-06 09:15:42 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-08-06 09:15:42 +0000 |
commit | 8b20309268255f6f6fbc908e5af8c9cde9a1a1c2 (patch) | |
tree | 67aa5e71ca8f826b24875a0de9a602849d2b2573 /sys/vm/vm_swap.c | |
parent | edb74877fe59af8008b23d2137302c9ad64c15d2 (diff) | |
download | FreeBSD-src-8b20309268255f6f6fbc908e5af8c9cde9a1a1c2.zip FreeBSD-src-8b20309268255f6f6fbc908e5af8c9cde9a1a1c2.tar.gz |
Incorporated post 1.1.5 work from John Dyson. This includes performance
improvements via the new routines pmap_qenter/pmap_qremove and pmap_kenter/
pmap_kremove. These routine allow fast mapping of pages for those
architectures that have "normal" MMUs. Also included is a fix to the
pageout daemon to properly check a queue end condition.
Submitted by: John Dyson
Diffstat (limited to 'sys/vm/vm_swap.c')
-rw-r--r-- | sys/vm/vm_swap.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index a504ffd..c0e14fb 100644 --- a/sys/vm/vm_swap.c +++ b/sys/vm/vm_swap.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)vm_swap.c 8.5 (Berkeley) 2/17/94 - * $Id$ + * $Id: vm_swap.c,v 1.3 1994/08/02 07:55:40 davidg Exp $ */ #include <sys/param.h> @@ -58,6 +58,8 @@ int niswdev; /* number of interleaved swap devices */ int niswap; /* size of interleaved swap area */ #endif +int bswneeded; +vm_offset_t swapbkva; /* swap buffers kva */ /* * Set up swap devices. * Initialize linked list of free swap @@ -141,18 +143,6 @@ swapinit() printf("swfree errno %d\n", error); /* XXX */ panic("swapinit swfree 0"); } - - /* - * Now set up swap buffer headers. - */ - for (i = 0; i < nswbuf - 1; i++, sp++) { - TAILQ_INSERT_HEAD(&bswlist, sp, b_freelist); - sp->b_rcred = sp->b_wcred = p->p_ucred; - sp->b_vnbufs.le_next = NOLIST; - } - sp->b_rcred = sp->b_wcred = p->p_ucred; - sp->b_vnbufs.le_next = NOLIST; - sp->b_actf = NULL; } void |