Only declare these variables extern in buf.h; define them only once in
vfs__bio.c.
This commit is contained in:
parent
c558337807
commit
41b40c6792
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -1 +1 @@
|
|||
revision 1.7 intentionally removed
|
||||
revision 1.8 intentionally removed
|
||||
|
|
Loading…
Reference in New Issue