diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/genassym.c | 3 | ||||
-rw-r--r-- | sys/amd64/amd64/machdep.c | 3 | ||||
-rw-r--r-- | sys/i386/i386/genassym.c | 3 | ||||
-rw-r--r-- | sys/i386/i386/machdep.c | 3 | ||||
-rw-r--r-- | sys/i386/i386/symbols.raw | 4 | ||||
-rw-r--r-- | sys/kern/init_main.c | 3 | ||||
-rw-r--r-- | sys/kern/kern_exit.c | 3 | ||||
-rw-r--r-- | sys/kern/kern_fork.c | 3 | ||||
-rw-r--r-- | sys/kern/kern_malloc.c | 3 | ||||
-rw-r--r-- | sys/kern/kern_proc.c | 3 | ||||
-rw-r--r-- | sys/kern/uipc_mbuf.c | 3 | ||||
-rw-r--r-- | sys/net/bpf.c | 3 | ||||
-rw-r--r-- | sys/nfs/nfs_vnops.c | 3 | ||||
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 3 | ||||
-rw-r--r-- | sys/sys/rlist.h | 8 | ||||
-rw-r--r-- | sys/ufs/mfs/mfs_vnops.c | 3 | ||||
-rw-r--r-- | sys/vm/swap_pager.c | 12 | ||||
-rw-r--r-- | sys/vm/vm_swap.c | 8 |
18 files changed, 30 insertions, 44 deletions
diff --git a/sys/amd64/amd64/genassym.c b/sys/amd64/amd64/genassym.c index 35dc109..75836e1 100644 --- a/sys/amd64/amd64/genassym.c +++ b/sys/amd64/amd64/genassym.c @@ -34,12 +34,11 @@ * SUCH DAMAGE. * * from: @(#)genassym.c 5.11 (Berkeley) 5/10/91 - * $Id: genassym.c,v 1.14 1994/10/02 07:19:43 rgrimes Exp $ + * $Id: genassym.c,v 1.15 1994/10/06 09:22:44 rgrimes Exp $ */ #include <sys/param.h> #include <sys/buf.h> -#include <sys/map.h> #include <sys/proc.h> /* XXX This is just real ugly to have to do, but it is what you have to do! */ #ifndef NFS diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 58abf82..0fff0aa 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.69 1994/10/02 17:29:51 phk Exp $ + * $Id: machdep.c,v 1.70 1994/10/04 18:44:21 ache Exp $ */ #include "npx.h" @@ -45,7 +45,6 @@ #include <sys/systm.h> #include <sys/signalvar.h> #include <sys/kernel.h> -#include <sys/map.h> #include <sys/proc.h> #include <sys/user.h> #include <sys/buf.h> diff --git a/sys/i386/i386/genassym.c b/sys/i386/i386/genassym.c index 35dc109..75836e1 100644 --- a/sys/i386/i386/genassym.c +++ b/sys/i386/i386/genassym.c @@ -34,12 +34,11 @@ * SUCH DAMAGE. * * from: @(#)genassym.c 5.11 (Berkeley) 5/10/91 - * $Id: genassym.c,v 1.14 1994/10/02 07:19:43 rgrimes Exp $ + * $Id: genassym.c,v 1.15 1994/10/06 09:22:44 rgrimes Exp $ */ #include <sys/param.h> #include <sys/buf.h> -#include <sys/map.h> #include <sys/proc.h> /* XXX This is just real ugly to have to do, but it is what you have to do! */ #ifndef NFS diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 58abf82..0fff0aa 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.69 1994/10/02 17:29:51 phk Exp $ + * $Id: machdep.c,v 1.70 1994/10/04 18:44:21 ache Exp $ */ #include "npx.h" @@ -45,7 +45,6 @@ #include <sys/systm.h> #include <sys/signalvar.h> #include <sys/kernel.h> -#include <sys/map.h> #include <sys/proc.h> #include <sys/user.h> #include <sys/buf.h> diff --git a/sys/i386/i386/symbols.raw b/sys/i386/i386/symbols.raw index 084f9b6..ce017d5 100644 --- a/sys/i386/i386/symbols.raw +++ b/sys/i386/i386/symbols.raw @@ -1,6 +1,6 @@ # @(#)symbols.raw 7.6 (Berkeley) 5/8/91 # -# $Id$ +# $Id: symbols.raw,v 1.3 1994/05/25 08:55:13 rgrimes Exp $ # @@ -36,7 +36,7 @@ #pstat # _cons _nswap - _swapmap + _swaplist #vmstat _cp_time # _rate diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 44129c1..815fac1 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)init_main.c 8.9 (Berkeley) 1/21/94 - * $Id: init_main.c,v 1.11 1994/09/25 19:33:33 phk Exp $ + * $Id: init_main.c,v 1.12 1994/10/02 04:45:45 davidg Exp $ */ #include <sys/param.h> @@ -45,7 +45,6 @@ #include <sys/exec.h> #include <sys/kernel.h> #include <sys/mount.h> -#include <sys/map.h> #include <sys/proc.h> #include <sys/resourcevar.h> #include <sys/signalvar.h> diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 7369be2..bd49641 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -36,13 +36,12 @@ * SUCH DAMAGE. * * @(#)kern_exit.c 8.7 (Berkeley) 2/12/94 - * $Id: kern_exit.c,v 1.7 1994/09/25 19:33:37 phk Exp $ + * $Id: kern_exit.c,v 1.8 1994/10/02 17:35:14 phk Exp $ */ #include <sys/param.h> #include <sys/systm.h> #include <sys/sysent.h> -#include <sys/map.h> #include <sys/ioctl.h> #include <sys/proc.h> #include <sys/tty.h> diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 94c9e22..06b3303 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -36,12 +36,11 @@ * SUCH DAMAGE. * * @(#)kern_fork.c 8.6 (Berkeley) 4/8/94 - * $Id: kern_fork.c,v 1.6 1994/09/01 05:12:38 davidg Exp $ + * $Id: kern_fork.c,v 1.7 1994/10/02 04:45:47 davidg Exp $ */ #include <sys/param.h> #include <sys/systm.h> -#include <sys/map.h> #include <sys/filedesc.h> #include <sys/kernel.h> #include <sys/malloc.h> diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 4c122dc..f70cbfb 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -31,13 +31,12 @@ * SUCH DAMAGE. * * @(#)kern_malloc.c 8.3 (Berkeley) 1/4/94 - * $Id: kern_malloc.c,v 1.3 1994/08/02 07:42:04 davidg Exp $ + * $Id: kern_malloc.c,v 1.4 1994/10/02 17:35:17 phk Exp $ */ #include <sys/param.h> #include <sys/systm.h> #include <sys/proc.h> -#include <sys/map.h> #include <sys/kernel.h> #include <sys/malloc.h> diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index f9c3d7b..a89b40d 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -31,12 +31,11 @@ * SUCH DAMAGE. * * @(#)kern_proc.c 8.4 (Berkeley) 1/4/94 - * $Id: kern_proc.c,v 1.6 1994/09/25 19:33:41 phk Exp $ + * $Id: kern_proc.c,v 1.7 1994/10/02 04:45:48 davidg Exp $ */ #include <sys/param.h> #include <sys/systm.h> -#include <sys/map.h> #include <sys/kernel.h> #include <sys/proc.h> #include <sys/buf.h> diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 62a648c..a20dd4c 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -31,14 +31,13 @@ * SUCH DAMAGE. * * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94 - * $Id: uipc_mbuf.c,v 1.4 1994/10/02 17:35:31 phk Exp $ + * $Id: uipc_mbuf.c,v 1.5 1994/10/04 06:50:01 phk Exp $ */ #include <sys/param.h> #include <sys/systm.h> #include <sys/proc.h> #include <sys/malloc.h> -#include <sys/map.h> #define MBTYPES #include <sys/mbuf.h> #include <sys/kernel.h> diff --git a/sys/net/bpf.c b/sys/net/bpf.c index 97c529f..5ad17a1 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -37,7 +37,7 @@ * * @(#)bpf.c 8.2 (Berkeley) 3/28/94 * - * $Id: bpf.c,v 1.2 1994/08/02 07:45:51 davidg Exp $ + * $Id: bpf.c,v 1.3 1994/08/20 03:48:55 davidg Exp $ */ #include "bpfilter.h" @@ -58,7 +58,6 @@ #include <sys/proc.h> #include <sys/user.h> #include <sys/ioctl.h> -#include <sys/map.h> #include <sys/file.h> #if defined(sparc) && BSD < 199103 diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index 8c4189a..9bbab54 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vnops.c 8.5 (Berkeley) 2/13/94 - * $Id: nfs_vnops.c,v 1.7 1994/09/22 19:38:28 wollman Exp $ + * $Id: nfs_vnops.c,v 1.8 1994/10/02 17:27:04 phk Exp $ */ /* @@ -52,7 +52,6 @@ #include <sys/conf.h> #include <sys/namei.h> #include <sys/vnode.h> -#include <sys/map.h> #include <sys/dirent.h> #include <sys/lockf.h> diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c index 8c4189a..9bbab54 100644 --- a/sys/nfsclient/nfs_vnops.c +++ b/sys/nfsclient/nfs_vnops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vnops.c 8.5 (Berkeley) 2/13/94 - * $Id: nfs_vnops.c,v 1.7 1994/09/22 19:38:28 wollman Exp $ + * $Id: nfs_vnops.c,v 1.8 1994/10/02 17:27:04 phk Exp $ */ /* @@ -52,7 +52,6 @@ #include <sys/conf.h> #include <sys/namei.h> #include <sys/vnode.h> -#include <sys/map.h> #include <sys/dirent.h> #include <sys/lockf.h> diff --git a/sys/sys/rlist.h b/sys/sys/rlist.h index f241f0f..4c85b71 100644 --- a/sys/sys/rlist.h +++ b/sys/sys/rlist.h @@ -16,7 +16,7 @@ * rlist_alloc(&swapmap, 100, &loc); obtain 100 sectors from swap * * from: unknown? - * $Id: rlist.h,v 1.5 1993/11/07 17:52:59 wollman Exp $ + * $Id: rlist.h,v 1.6 1993/11/25 01:38:01 wollman Exp $ */ #ifndef _SYS_RLIST_H_ @@ -29,13 +29,11 @@ struct rlist { struct rlist *rl_next; /* next list entry, if present */ }; +extern struct rlist *swaplist; + /* Functions to manipulate resource lists. */ extern void rlist_free __P((struct rlist **, unsigned, unsigned)); int rlist_alloc __P((struct rlist **, unsigned, unsigned *)); extern void rlist_destroy __P((struct rlist **)); - -/* heads of lists */ -extern struct rlist *swapmap; - #endif /* _SYS_RLIST_H_ */ diff --git a/sys/ufs/mfs/mfs_vnops.c b/sys/ufs/mfs/mfs_vnops.c index 10dd701..ba882d9 100644 --- a/sys/ufs/mfs/mfs_vnops.c +++ b/sys/ufs/mfs/mfs_vnops.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)mfs_vnops.c 8.3 (Berkeley) 9/21/93 - * $Id: mfs_vnops.c,v 1.5 1994/09/21 03:47:43 wollman Exp $ + * $Id: mfs_vnops.c,v 1.6 1994/09/25 22:31:08 davidg Exp $ */ #include <sys/param.h> @@ -40,7 +40,6 @@ #include <sys/kernel.h> #include <sys/proc.h> #include <sys/buf.h> -#include <sys/map.h> #include <sys/vnode.h> #include <sys/malloc.h> diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index e9a0a27..4793b6e 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -39,7 +39,7 @@ * from: Utah $Hdr: swap_pager.c 1.4 91/04/30$ * * @(#)swap_pager.c 8.9 (Berkeley) 3/21/94 - * $Id: swap_pager.c,v 1.9 1994/09/25 04:02:10 davidg Exp $ + * $Id: swap_pager.c,v 1.10 1994/10/09 01:52:04 phk Exp $ */ /* @@ -79,6 +79,8 @@ extern int hz; int swap_pager_full; extern vm_map_t pager_map; extern int vm_swap_size; +struct rlist *swaplist; +int nswaplist; #define MAX_PAGEOUT_CLUSTER 8 @@ -364,14 +366,14 @@ swap_pager_getswapspace( unsigned amount, unsigned *rtval) { if( amount < nblocksfrag) { if( rlist_alloc(&swapfrag, amount, rtval)) return 1; - if( !rlist_alloc(&swapmap, nblocksfrag, &tmpalloc)) + if( !rlist_alloc(&swaplist, nblocksfrag, &tmpalloc)) return 0; rlist_free( &swapfrag, tmpalloc+amount, tmpalloc + nblocksfrag - 1); *rtval = tmpalloc; return 1; } #endif - if( !rlist_alloc(&swapmap, amount, rtval)) + if( !rlist_alloc(&swaplist, amount, rtval)) return 0; else return 1; @@ -388,13 +390,13 @@ swap_pager_freeswapspace( unsigned from, unsigned to) { unsigned tmpalloc; if( ((to + 1) - from) >= nblocksfrag) { #endif - rlist_free(&swapmap, from, to); + rlist_free(&swaplist, from, to); #ifdef EXP return; } rlist_free(&swapfrag, from, to); while( rlist_alloc(&swapfrag, nblocksfrag, &tmpalloc)) { - rlist_free(&swapmap, tmpalloc, tmpalloc + nblocksfrag-1); + rlist_free(&swaplist, tmpalloc, tmpalloc + nblocksfrag-1); } #endif } diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index 69747a8..4a92f37 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: vm_swap.c,v 1.6 1994/09/25 22:31:11 davidg Exp $ + * $Id: vm_swap.c,v 1.7 1994/10/09 01:52:18 phk Exp $ */ #include <sys/param.h> @@ -42,8 +42,8 @@ #include <sys/namei.h> #include <sys/dmap.h> /* XXX */ #include <sys/vnode.h> -#include <sys/map.h> #include <sys/file.h> +#include <sys/rlist.h> #include <miscfs/specfs/specdev.h> @@ -390,7 +390,7 @@ swfree(p, index) blk = niswap; for (swp = &swdevt[niswdev]; swp != sp; swp++) blk += swp->sw_nblks; - rlist_free(&swapmap, blk, blk + nblks - 1); + rlist_free(&swaplist, blk, blk + nblks - 1); vm_swap_size += nblks; return (0); } @@ -409,7 +409,7 @@ swfree(p, index) blk = dmmax; /* XXX -- we need to exclude the first cluster as above */ /* but for now, this will work fine... */ - rlist_free(&swapmap, vsbase, vsbase + blk - 1); + rlist_free(&swaplist, vsbase, vsbase + blk - 1); vm_swap_size += blk; } return (0); |