Source-Changes-HG archive

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

[src/trunk]: src/sys Remove nswbuf since it is entirely unused.



details:   https://anonhg.NetBSD.org/src/rev/15e25dd5bb60
branches:  trunk
changeset: 542575:15e25dd5bb60
user:      erh <erh%NetBSD.org@localhost>
date:      Sat Feb 01 21:07:01 2003 +0000

description:
Remove nswbuf since it is entirely unused.

diffstat:

 sys/kern/kern_allocsys.c |  13 ++-----------
 sys/sys/buf.h            |   3 +--
 2 files changed, 3 insertions(+), 13 deletions(-)

diffs (58 lines):

diff -r 7bd7a72f2263 -r 15e25dd5bb60 sys/kern/kern_allocsys.c
--- a/sys/kern/kern_allocsys.c  Sat Feb 01 21:05:54 2003 +0000
+++ b/sys/kern/kern_allocsys.c  Sat Feb 01 21:07:01 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_allocsys.c,v 1.21 2002/09/27 15:37:43 provos Exp $        */
+/*     $NetBSD: kern_allocsys.c,v 1.22 2003/02/01 21:07:01 erh Exp $   */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_allocsys.c,v 1.21 2002/09/27 15:37:43 provos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_allocsys.c,v 1.22 2003/02/01 21:07:01 erh Exp $");
 
 #include "opt_bufcache.h"
 #include "opt_callout.h"
@@ -112,7 +112,6 @@
 #endif
 
 u_int  nbuf = NBUF;
-u_int  nswbuf = 0;
 u_int  bufpages = BUFPAGES;    /* optional hardwired count */
 u_int  bufcache = BUFCACHE;    /* % of RAM to use for buffer cache */
 
@@ -209,14 +208,6 @@
                nbuf = VM_MAX_KERNEL_BUF / MAXBSIZE;
 #endif
 
-       /*
-        * We allocate 1/2 as many swap buffer headers as file I/O buffers.
-        */
-       if (nswbuf == 0) {
-               nswbuf = (nbuf / 2) &~ 1;       /* force even */
-               if (nswbuf > 256)
-                       nswbuf = 256;           /* sanity */
-       }
        ALLOCSYS(v, buf, struct buf, nbuf);
 
        return (v);
diff -r 7bd7a72f2263 -r 15e25dd5bb60 sys/sys/buf.h
--- a/sys/sys/buf.h     Sat Feb 01 21:05:54 2003 +0000
+++ b/sys/sys/buf.h     Sat Feb 01 21:07:01 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: buf.h,v 1.55 2002/10/06 17:05:56 thorpej Exp $ */
+/*     $NetBSD: buf.h,v 1.56 2003/02/01 21:07:02 erh Exp $     */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -252,7 +252,6 @@
 extern struct buf *buf;        /* The buffer headers. */
 extern char *buffers;          /* The buffer contents. */
 extern u_int bufpages;         /* Number of memory pages in the buffer pool. */
-extern u_int nswbuf;           /* Number of swap I/O buffer headers. */
 
 extern struct pool bufpool;    /* I/O buf pool */
 



Home | Main Index | Thread Index | Old Index