diff options
author | kib <kib@FreeBSD.org> | 2013-10-01 20:18:33 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-10-01 20:18:33 +0000 |
commit | 2f645d31a99aa44e5c7cb6007b01fe32eac949f8 (patch) | |
tree | 71bb2e709b83e0f756bd3d158471ef0121bb7fd3 /sys/kern/vfs_subr.c | |
parent | c637526317adafce2838292024d3dc0ea0c7f4ce (diff) | |
download | FreeBSD-src-2f645d31a99aa44e5c7cb6007b01fe32eac949f8.zip FreeBSD-src-2f645d31a99aa44e5c7cb6007b01fe32eac949f8.tar.gz |
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)
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 952a489..930a3c8 100644 --- a/sys/kern/vfs_subr.c +++ b/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) |