svn commit: r255979 - head/sys/kern

Konstantin Belousov kib at FreeBSD.org
Tue Oct 1 20:18:34 UTC 2013


Author: kib
Date: Tue Oct  1 20:18:33 2013
New Revision: 255979
URL: http://svnweb.freebsd.org/changeset/base/255979

Log:
  When printing the vnode information from ddb, print the lengths of the
  dirty and clean buffer queues.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week
  Approved by:	re (gjb)

Modified:
  head/sys/kern/vfs_subr.c

Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c	Tue Oct  1 19:14:24 2013	(r255978)
+++ head/sys/kern/vfs_subr.c	Tue Oct  1 20:18:33 2013	(r255979)
@@ -2892,9 +2892,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)


More information about the svn-src-head mailing list