diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_cache.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index a0bd900958e..588af4c9d25 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_cache.c,v 1.16 2005/05/26 23:28:39 pedro Exp $ */ +/* $OpenBSD: vfs_cache.c,v 1.17 2005/05/28 07:28:07 marius Exp $ */ /* $NetBSD: vfs_cache.c,v 1.13 1996/02/04 02:18:09 christos Exp $ */ /* @@ -358,6 +358,10 @@ cache_enter(struct vnode *dvp, struct vnode *vp, struct componentname *cnp) LIST_REMOVE(ncp, nc_hash); ncp->nc_hash.le_prev = NULL; } + if (ncp->nc_vhash.le_prev != NULL) { + LIST_REMOVE(ncp, nc_vhash); + ncp->nc_vhash.le_prev = NULL; + } } else return; /* grab the vnode we just found */ |