summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authormarius eriksen <marius@cvs.openbsd.org>2005-05-28 07:28:08 +0000
committermarius eriksen <marius@cvs.openbsd.org>2005-05-28 07:28:08 +0000
commitdb82547199e65e67b5c68ab3a581a67749278c01 (patch)
tree8d575f7916c5c1f10830ac3303b8d1e7ba865ebf /sys/kern
parent8867169aa39629c7991c639c003af9cb095e7a73 (diff)
fix one missed case for removing reverse name cache entries.
ok pedro@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_cache.c6
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 */