aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_cache.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-04-15 07:55:43 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-04-15 07:55:43 +0000
commit4f0279e064bb163dbcc4859e409fc65dcbe8f1bf (patch)
tree0d4e8041cc3804a610d8954b0be28a198bcd5499 /sys/kern/vfs_cache.c
parent17d214c2ca9f110db3fa2a10d6b448d624e87774 (diff)
downloadsrc-4f0279e064bb163dbcc4859e409fc65dcbe8f1bf.tar.gz
src-4f0279e064bb163dbcc4859e409fc65dcbe8f1bf.zip
cache: extend mismatch vnode assert print to include the name
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r--sys/kern/vfs_cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 8819ef483af5..68ad0128245b 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -2468,12 +2468,12 @@ cache_enter_time(struct vnode *dvp, struct vnode *vp, struct componentname *cnp,
MPASS(cache_ncp_canuse(n2));
if ((n2->nc_flag & NCF_NEGATIVE) != 0)
KASSERT(vp == NULL,
- ("%s: found entry pointing to a different vnode (%p != %p)",
- __func__, NULL, vp));
+ ("%s: found entry pointing to a different vnode (%p != %p) ; name [%s]",
+ __func__, NULL, vp, cnp->cn_nameptr));
else
KASSERT(n2->nc_vp == vp,
- ("%s: found entry pointing to a different vnode (%p != %p)",
- __func__, n2->nc_vp, vp));
+ ("%s: found entry pointing to a different vnode (%p != %p) ; name [%s]",
+ __func__, n2->nc_vp, vp, cnp->cn_nameptr));
/*
* Entries are supposed to be immutable unless in the
* process of getting destroyed. Accommodating for