diff options
author | Grigoriy Orlov <gluk@cvs.openbsd.org> | 2001-09-10 22:05:39 +0000 |
---|---|---|
committer | Grigoriy Orlov <gluk@cvs.openbsd.org> | 2001-09-10 22:05:39 +0000 |
commit | 56e4b27fa4fa918d4a968781cc071f26ca7a9cd5 (patch) | |
tree | 58c651166b5f8be8d3b60f33ad27d8f2f7144ec7 /sys/kern | |
parent | d31ebdc4b816c4f7f2861960d9e1582e02022bde (diff) |
remove useless debug function.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_bio.c | 23 |
1 files changed, 1 insertions, 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); @@ -1035,23 +1031,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. * Can be enabled to print out on every ``sync'' by setting "syncprt" * in vfs_syscalls.c using sysctl. |