summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_cache.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-06-11 08:47:30 +0000
committerjeff <jeff@FreeBSD.org>2005-06-11 08:47:30 +0000
commit8a4fe36603b7f4d633f64a193c4035dab01e5126 (patch)
treea4bb1db33e165c10dff120d89ad1205ca0258bb3 /sys/kern/vfs_cache.c
parent4729e22704b918900bb1994b3fcb15f42911bcb5 (diff)
downloadFreeBSD-src-8a4fe36603b7f4d633f64a193c4035dab01e5126.zip
FreeBSD-src-8a4fe36603b7f4d633f64a193c4035dab01e5126.tar.gz
- Assert that we're not adding a doomed vnode to the name cache.
Sponsored by: Isilon Systems, Inc.
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r--sys/kern/vfs_cache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 88e32de..8bcf9ce 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -474,6 +474,9 @@ cache_enter(dvp, vp, cnp)
int zap;
int len;
+ VNASSERT(vp == NULL || (vp->v_iflag & VI_DOOMED) == 0, vp,
+ ("cahe_enter: Adding a doomed vnode"));
+
if (!doingcache)
return;
OpenPOWER on IntegriCloud