Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/vm Nuke at least a few files which are clearly not used ...



details:   https://anonhg.NetBSD.org/src/rev/e0050817a496
branches:  trunk
changeset: 467871:e0050817a496
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Tue Mar 30 13:08:55 1999 +0000

description:
Nuke at least a few files which are clearly not used any more.

diffstat:

 sys/vm/Makefile       |   6 +-
 sys/vm/device_pager.h |  55 ------------------------------
 sys/vm/swap_pager.h   |  93 ---------------------------------------------------
 sys/vm/vnode_pager.h  |  61 ---------------------------------
 4 files changed, 3 insertions(+), 212 deletions(-)

diffs (239 lines):

diff -r 12634a91c730 -r e0050817a496 sys/vm/Makefile
--- a/sys/vm/Makefile   Tue Mar 30 12:36:50 1999 +0000
+++ b/sys/vm/Makefile   Tue Mar 30 13:08:55 1999 +0000
@@ -1,11 +1,11 @@
-#      $NetBSD: Makefile,v 1.2 1998/08/29 17:06:12 mrg Exp $
+#      $NetBSD: Makefile,v 1.3 1999/03/30 13:08:55 mycroft Exp $
 
 KDIR=  /sys/vm
 INCSDIR= /usr/include/vm
 
-INCS=  device_pager.h pglist.h pmap.h swap_pager.h vm.h vm_conf.h \
+INCS=  pglist.h pmap.h vm.h vm_conf.h \
        vm_extern.h vm_inherit.h vm_kern.h vm_map.h vm_object.h vm_page.h \
-       vm_pageout.h vm_pager.h vm_param.h vm_prot.h vnode_pager.h
+       vm_pageout.h vm_pager.h vm_param.h vm_prot.h
 
 # XXX remove after NetBSD 1.4 (or earlier if you want :)
 INCS+= vm_swap.h 
diff -r 12634a91c730 -r e0050817a496 sys/vm/device_pager.h
--- a/sys/vm/device_pager.h     Tue Mar 30 12:36:50 1999 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*     $NetBSD: device_pager.h,v 1.9 1994/06/29 06:47:41 cgd Exp $     */
-
-/*
- * Copyright (c) 1990 University of Utah.
- * Copyright (c) 1991, 1993
- *     The Regents of the University of California.  All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * the Systems Programming Group of the University of Utah Computer
- * Science Department.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed by the University of
- *     California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- *     @(#)device_pager.h      8.3 (Berkeley) 12/13/93
- */
-
-#ifndef        _DEVICE_PAGER_
-#define        _DEVICE_PAGER_  1
-
-/*
- * Device pager private data.
- */
-struct devpager {
-       struct pglist   devp_pglist;    /* list of pages allocated */
-       vm_object_t     devp_object;    /* object representing this device */
-};
-typedef struct devpager        *dev_pager_t;
-
-#endif /* _DEVICE_PAGER_ */
diff -r 12634a91c730 -r e0050817a496 sys/vm/swap_pager.h
--- a/sys/vm/swap_pager.h       Tue Mar 30 12:36:50 1999 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,93 +0,0 @@
-/*     $NetBSD: swap_pager.h,v 1.8 1998/08/13 02:11:05 eeh Exp $       */
-
-/*
- * Copyright (c) 1990 University of Utah.
- * Copyright (c) 1991, 1993
- *     The Regents of the University of California.  All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * the Systems Programming Group of the University of Utah Computer
- * Science Department.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed by the University of
- *     California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- *     @(#)swap_pager.h        8.1 (Berkeley) 6/11/93
- */
-
-#ifndef        _SWAP_PAGER_
-#define        _SWAP_PAGER_    1
-
-/*
- * In the swap pager, the backing store for an object is organized as an
- * array of some number of "swap blocks".  A swap block consists of a bitmask
- * and some number of contiguous DEV_BSIZE disk blocks.  The minimum size
- * of a swap block is:
- *
- *     max(PAGE_SIZE, dmmin*DEV_BSIZE)                 [ 32k currently ]
- *
- * bytes (since the pager interface is page oriented), the maximum size is:
- *
- *     min(#bits(swb_mask)*PAGE_SIZE, dmmax*DEV_BSIZE) [ 128k currently ]
- *
- * where dmmin and dmmax are left over from the old VM interface.  The bitmask
- * (swb_mask) is used by swap_pager_haspage() to determine if a particular
- * page has actually been written; i.e. the pager copy of the page is valid.
- * All swap blocks in the backing store of an object will be the same size.
- *
- * The reason for variable sized swap blocks is to reduce fragmentation of
- * swap resources.  Whenever possible we allocate smaller swap blocks to
- * smaller objects.  The swap block size is determined from a table of
- * object-size vs. swap-block-size computed at boot time.
- */
-typedef        int     sw_bm_t;        /* pager bitmask */
-
-struct swblock {
-       sw_bm_t  swb_mask;      /* bitmask of valid pages in this block */
-       daddr_t  swb_block;     /* starting disk block for this block */
-};
-typedef struct swblock *sw_blk_t;
-
-/*
- * Swap pager private data.
- */
-struct swpager {
-       vsize_t    sw_osize;    /* size of object we are backing (bytes) */
-       int          sw_bsize;  /* size of swap blocks (DEV_BSIZE units) */
-       int          sw_nblocks;/* number of blocks in list (sw_blk_t units) */
-       sw_blk_t     sw_blocks; /* pointer to list of swap blocks */
-       short        sw_flags;  /* flags */
-       short        sw_poip;   /* pageouts in progress */
-       int          sw_cnt;    /* count of pages in pager */
-};
-typedef struct swpager *sw_pager_t;
-
-#define        SW_WANTED       0x01
-#define SW_NAMED       0x02
-
-#endif /* _SWAP_PAGER_ */
diff -r 12634a91c730 -r e0050817a496 sys/vm/vnode_pager.h
--- a/sys/vm/vnode_pager.h      Tue Mar 30 12:36:50 1999 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,61 +0,0 @@
-/*     $NetBSD: vnode_pager.h,v 1.7 1998/08/13 02:11:09 eeh Exp $      */
-
-/*
- * Copyright (c) 1990 University of Utah.
- * Copyright (c) 1991, 1993
- *     The Regents of the University of California.  All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * the Systems Programming Group of the University of Utah Computer
- * Science Department.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed by the University of
- *     California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- *     @(#)vnode_pager.h       8.1 (Berkeley) 6/11/93
- */
-
-#ifndef        _VNODE_PAGER_
-#define        _VNODE_PAGER_   1
-
-/*
- * VNODE pager private data.
- */
-struct vnpager {
-       int             vnp_flags;      /* flags */
-       struct vnode    *vnp_vp;        /* vnode */
-       vsize_t vnp_size;       /* vnode current size */
-};
-typedef struct vnpager *vn_pager_t;
-
-#define VN_PAGER_NULL  ((vn_pager_t)0)
-
-#define        VNP_PAGING      0x01            /* vnode used for pageout */
-#define VNP_CACHED     0x02            /* vnode is cached */
-
-#endif /* _VNODE_PAGER_ */



Home | Main Index | Thread Index | Old Index