git: 02e6e8d21894 - main - vfs: extend vn_printf with vop vector

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Fri, 07 Apr 2023 20:41:56 UTC
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=02e6e8d21894b2888fe16fa1c530a93b8578f89e

commit 02e6e8d21894b2888fe16fa1c530a93b8578f89e
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-04-07 20:14:15 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2023-04-07 20:39:06 +0000

    vfs: extend vn_printf with vop vector
---
 sys/kern/vfs_subr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 1da299e93eea..c2b1f71502cd 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -4212,7 +4212,8 @@ vn_printf(struct vnode *vp, const char *fmt, ...)
 	vprintf(fmt, ap);
 	va_end(ap);
 	printf("%p: ", (void *)vp);
-	printf("type %s state %s\n", vtypename[vp->v_type], vstatename[vp->v_state]);
+	printf("type %s state %s op %p\n", vtypename[vp->v_type],
+	    vstatename[vp->v_state], vp->v_op);
 	holdcnt = atomic_load_int(&vp->v_holdcnt);
 	printf("    usecount %d, writecount %d, refcount %d seqc users %d",
 	    vp->v_usecount, vp->v_writecount, holdcnt & ~VHOLD_ALL_FLAGS,