/*
 * @DEC_COPYRIGHT@
 */
/*
 * HISTORY
 * $Log:	biostats.h,v $
 * Revision 4.2  91/09/19  22:56:37  devbld
 * Adding ODE Headers
 * 
 * $EndLog$
 */
/*	
 *	@(#)$RCSfile: biostats.h,v $ $Revision: 4.2 $ (DEC) $Date: 91/09/19 22:56:37 $
 */ 
/*
 */
/*
 * Buffer cache statistics.
 */
/*
 * (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC.
 * ALL RIGHTS RESERVED
 */
/*
 * OSF/1 Release 1.0
 */

#ifndef	_SYS_BIOSTATS_H_
#define _SYS_BIOSTATS_H_

#if	BUFCACHE_STATS
struct bio_stats {
	int	getblk_hits;
	int	getblk_misses;
	int	getblk_research;
	int	getblk_dupbuf;
	int	getnewbuf_calls;
	int	getnewbuf_buflocked;
	int	vflushbuf_lockskips;
	int	mntflushbuf_misses;
	int	mntinvalbuf_misses;
	int	vinvalbuf_misses;
	int	allocbuf_buflocked;
	int	ufssync_misses;
};

#ifdef	_KERNEL
extern struct bio_stats 	bio_stats;
#define	BUF_STATS(clause)	STATS_ACTION(&bio_stats_lock, (clause))
vdecl_simple_lock_data(,bio_stats_lock)
#endif

#else	/* BUFCACHE_STATS */

#ifdef	_KERNEL
#define	BUF_STATS(clause)
#endif

#endif	/* BUFCACHE_STATS */
#endif	/* _SYS_BIOSTATS_H_ */
