From db82547199e65e67b5c68ab3a581a67749278c01 Mon Sep 17 00:00:00 2001 From: marius eriksen Date: Sat, 28 May 2005 07:28:08 +0000 Subject: fix one missed case for removing reverse name cache entries. ok pedro@ --- sys/kern/vfs_cache.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys') 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 */ -- cgit v1.2.3