From d5d81d04f815ca58d2e538a1f802294d09225609 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Thu, 6 Dec 1990 01:55:14 -0800 Subject: [PATCH] formerly vm_sw.c; update for new VM SCCS-vsn: sys/vm/vm_swap.c 7.15 --- usr/src/sys/vm/vm_swap.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/usr/src/sys/vm/vm_swap.c b/usr/src/sys/vm/vm_swap.c index 35857afdf5..213d7bab20 100644 --- a/usr/src/sys/vm/vm_swap.c +++ b/usr/src/sys/vm/vm_swap.c @@ -4,7 +4,7 @@ * * %sccs.include.redist.c% * - * @(#)vm_swap.c 7.14 (Berkeley) %G% + * @(#)vm_swap.c 7.15 (Berkeley) %G% */ #include "param.h" @@ -153,21 +153,6 @@ swfree(index) if (blk > dmmax) blk = dmmax; if (vsbase == 0) { - /* - * Can't free a block starting at 0 in the swapmap - * but need some space for argmap so use 1/2 this - * hunk which needs special treatment anyways. - */ - argdev = sp->sw_dev; -#ifdef SECSIZE - argdbsize = sp->sw_blksize; - rminit(argmap, - ((blk / 2) * DEV_BSIZE - CLBYTES) / argdbsize, - CLBYTES / argdbsize, "argmap", ARGMAPSIZE); -#else SECSIZE - rminit(argmap, (long)(blk/2-ctod(CLSIZE)), - (long)ctod(CLSIZE), "argmap", ARGMAPSIZE); -#endif SECSIZE /* * First of all chunks... initialize the swapmap * the second half of the hunk. -- 2.20.1