Author: kib
Date: Tue Oct  8 04:52:40 2013
New Revision: 256134
URL: http://svnweb.freebsd.org/changeset/base/256134

Log:
  MFC r255979:
  When printing the vnode information from ddb, print the lengths of the
  dirty and clean buffer queues.

Modified:
  stable/9/sys/kern/vfs_subr.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/vfs_subr.c
==============================================================================
--- stable/9/sys/kern/vfs_subr.c        Tue Oct  8 04:16:22 2013        
(r256133)
+++ stable/9/sys/kern/vfs_subr.c        Tue Oct  8 04:52:40 2013        
(r256134)
@@ -3015,9 +3015,12 @@ vn_printf(struct vnode *vp, const char *
        if (mtx_owned(VI_MTX(vp)))
                printf(" VI_LOCKed");
        if (vp->v_object != NULL)
-               printf("    v_object %p ref %d pages %d\n",
+               printf("    v_object %p ref %d pages %d "
+                   "cleanbuf %d dirtybuf %d\n",
                    vp->v_object, vp->v_object->ref_count,
-                   vp->v_object->resident_page_count);
+                   vp->v_object->resident_page_count,
+                   vp->v_bufobj.bo_dirty.bv_cnt,
+                   vp->v_bufobj.bo_clean.bv_cnt);
        printf("    ");
        lockmgr_printinfo(vp->v_vnlock);
        if (vp->v_data != NULL)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to