From 41b40c6792a36f19abc1387532ad67430a2bc29f Mon Sep 17 00:00:00 2001 From: mycroft Date: Sun, 18 Jul 1993 05:15:25 +0000 Subject: [PATCH] Only declare these variables extern in buf.h; define them only once in vfs__bio.c. --- sys/kern/vfs__bio.c | 13 ++++++++++++- sys/sys/buf.h | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/sys/kern/vfs__bio.c b/sys/kern/vfs__bio.c index fa3a3d6bbe76..bde678aa2968 100644 --- a/sys/kern/vfs__bio.c +++ b/sys/kern/vfs__bio.c @@ -45,7 +45,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: vfs__bio.c,v 1.6 1993/07/17 16:23:05 mycroft Exp $ + * $Id: vfs__bio.c,v 1.7 1993/07/18 05:15:25 mycroft Exp $ */ #include "param.h" @@ -61,6 +61,17 @@ static struct buf *getnewbuf __P((int)); extern vm_map_t buffer_map; +struct buf *buf; /* the buffer pool itself */ +char *buffers; +int nbuf; /* number of buffer headers */ +int bufpages; /* number of memory pages in the buffer pool */ +struct buf *swbuf; /* swap I/O headers */ +int nswbuf; +struct bufhd bufhash[BUFHSZ]; /* heads of hash lists */ +struct buf bfreelist[BQUEUES]; /* heads of available lists */ +struct buf bswlist; /* head of free swap header list */ +struct buf *bclnlist; /* head of cleaned page list */ + /* * Initialize buffer headers and related structures. */ diff --git a/sys/sys/buf.h b/sys/sys/buf.h index a6e3f2871612..37ba0a781f5b 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -1 +1 @@ -revision 1.7 intentionally removed +revision 1.8 intentionally removed