Source-Changes-HG archive

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

[src/trunk]: src/sys/coda Reduce verbosity of semi-debug coda_inactive printf.



details:   https://anonhg.NetBSD.org/src/rev/09f684961966
branches:  trunk
changeset: 769546:09f684961966
user:      gdt <gdt%NetBSD.org@localhost>
date:      Tue Sep 13 19:34:27 2011 +0000

description:
Reduce verbosity of semi-debug coda_inactive printf.

Rather than print if the usecount is > 0, only print if it is greater
than 1.  It seems 1 is normal.

diffstat:

 sys/coda/coda_vnops.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 1f84f5c78ad5 -r 09f684961966 sys/coda/coda_vnops.c
--- a/sys/coda/coda_vnops.c     Tue Sep 13 19:21:20 2011 +0000
+++ b/sys/coda/coda_vnops.c     Tue Sep 13 19:34:27 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: coda_vnops.c,v 1.80 2011/06/12 03:35:51 rmind Exp $    */
+/*     $NetBSD: coda_vnops.c,v 1.81 2011/09/13 19:34:27 gdt Exp $      */
 
 /*
  *
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coda_vnops.c,v 1.80 2011/06/12 03:35:51 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coda_vnops.c,v 1.81 2011/09/13 19:34:27 gdt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -854,7 +854,7 @@
 
     if (IS_UNMOUNTING(cp)) {
        /* XXX Do we need to VOP_CLOSE container vnodes? */
-       if (vp->v_usecount > 0)
+       if (vp->v_usecount > 1)
            printf("coda_inactive: IS_UNMOUNTING %p usecount %d\n",
                   vp, vp->v_usecount);
        if (cp->c_ovp != NULL)
@@ -862,7 +862,7 @@
        VOP_UNLOCK(vp);
     } else {
         /* Sanity checks that perhaps should be panic. */
-       if (vp->v_usecount) {
+       if (vp->v_usecount > 1) {
            printf("coda_inactive: %p usecount %d\n", vp, vp->v_usecount);
        }
        if (cp->c_ovp != NULL) {



Home | Main Index | Thread Index | Old Index