Skip to content
Browse files

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)
  • Loading branch information...
1 parent c637526 commit 2f645d31a99aa44e5c7cb6007b01fe32eac949f8 @kostikbel kostikbel committed Oct 1, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 sys/kern/vfs_subr.c
View
7 sys/kern/vfs_subr.c
@@ -2892,9 +2892,12 @@ vn_printf(struct vnode *vp, const char *fmt, ...)
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)

0 comments on commit 2f645d3

Please sign in to comment.
Something went wrong with that request. Please try again.