From 56e4b27fa4fa918d4a968781cc071f26ca7a9cd5 Mon Sep 17 00:00:00 2001 From: Grigoriy Orlov Date: Mon, 10 Sep 2001 22:05:39 +0000 Subject: remove useless debug function. --- sys/kern/vfs_bio.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index e088c881714..ce6ec391f13 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_bio.c,v 1.39 2001/08/30 12:38:52 gluk Exp $ */ +/* $OpenBSD: vfs_bio.c,v 1.40 2001/09/10 22:05:38 gluk Exp $ */ /* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */ /*- @@ -106,7 +106,6 @@ struct bio_ops bioops; static __inline struct buf *bio_doread __P((struct vnode *, daddr_t, int, struct ucred *, int)); -int count_lock_queue __P((void)); int getnewbuf __P((int slpflag, int slptimeo, struct buf **)); /* @@ -177,9 +176,6 @@ bufinit() register int i; int base, residual; - numfreebufs = 0; - numcleanbufs = 0; - numemptybufs = 0; for (dp = bufqueues; dp < &bufqueues[BQUEUES]; dp++) TAILQ_INIT(dp); bufhashtbl = hashinit(nbuf, M_CACHE, M_WAITOK, &bufhash); @@ -1033,23 +1029,6 @@ biodone(bp) } } -#ifdef DEBUG -/* - * Return a count of buffers on the "locked" queue. - */ -int -count_lock_queue() -{ - register struct buf *bp; - register int n = 0; - - for (bp = bufqueues[BQ_LOCKED].tqh_first; bp; - bp = bp->b_freelist.tqe_next) - n++; - return (n); -} -#endif /* DEBUG */ - #ifdef DEBUG /* * Print out statistics on the current allocation of the buffer pool. -- cgit v1.2.3