Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys G/C count_lock_queue (unused for 12 years)



details:   https://anonhg.NetBSD.org/src/rev/239d5b9c1e4d
branches:  trunk
changeset: 763517:239d5b9c1e4d
user:      rmind <rmind%NetBSD.org@localhost>
date:      Wed Mar 23 00:58:38 2011 +0000

description:
G/C count_lock_queue (unused for 12 years)

diffstat:

 sys/kern/vfs_bio.c        |  21 ++-------------------
 sys/ufs/lfs/lfs_segment.c |   5 ++---
 2 files changed, 4 insertions(+), 22 deletions(-)

diffs (75 lines):

diff -r 674083163c04 -r 239d5b9c1e4d sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c        Tue Mar 22 23:07:49 2011 +0000
+++ b/sys/kern/vfs_bio.c        Wed Mar 23 00:58:38 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_bio.c,v 1.227 2011/01/17 07:13:32 uebayasi Exp $   */
+/*     $NetBSD: vfs_bio.c,v 1.228 2011/03/23 00:58:38 rmind Exp $      */
 
 /*-
  * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.227 2011/01/17 07:13:32 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.228 2011/03/23 00:58:38 rmind Exp $");
 
 #include "opt_bufcache.h"
 
@@ -181,7 +181,6 @@
 static void buf_mrelease(void *, size_t);
 static void binsheadfree(buf_t *, struct bqueue *);
 static void binstailfree(buf_t *, struct bqueue *);
-int count_lock_queue(void); /* XXX */
 #ifdef DEBUG
 static int checkfreelist(buf_t *, struct bqueue *, int);
 #endif
@@ -1577,22 +1576,6 @@
 }
 
 /*
- * Return a count of buffers on the "locked" queue.
- */
-int
-count_lock_queue(void)
-{
-       buf_t *bp;
-       int n = 0;
-
-       mutex_enter(&bufcache_lock);
-       TAILQ_FOREACH(bp, &bufqueues[BQ_LOCKED].bq_queue, b_freelist)
-               n++;
-       mutex_exit(&bufcache_lock);
-       return (n);
-}
-
-/*
  * Wait for all buffers to complete I/O
  * Return the number of "stuck" buffers.
  */
diff -r 674083163c04 -r 239d5b9c1e4d sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Tue Mar 22 23:07:49 2011 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Wed Mar 23 00:58:38 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_segment.c,v 1.217 2010/07/21 17:52:13 hannken Exp $        */
+/*     $NetBSD: lfs_segment.c,v 1.218 2011/03/23 00:58:39 rmind Exp $  */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.217 2010/07/21 17:52:13 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.218 2011/03/23 00:58:39 rmind Exp $");
 
 #ifdef DEBUG
 # define vndebug(vp, str) do {                                         \
@@ -108,7 +108,6 @@
 
 MALLOC_JUSTDEFINE(M_SEGMENT, "LFS segment", "Segment for LFS");
 
-extern int count_lock_queue(void);
 extern kmutex_t vnode_free_list_lock;          /* XXX */
 
 static void lfs_generic_callback(struct buf *, void (*)(struct buf *));



Home | Main Index | Thread Index | Old Index