summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_cache.c
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-04-15 00:49:35 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-04-15 00:49:35 +0000
commitcf8ad5100da6f422ebbca992a4840467d179dbc0 (patch)
treee8958fa46783dc57d1b6954135dfb3063cb788f4 /sys/kern/vfs_cache.c
parent0fbb4a064b1fbba570957c919657e20889819259 (diff)
Notes
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r--sys/kern/vfs_cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index bb4b8be16fee..e8f1b1691cb0 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -33,7 +33,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_cache.c 8.3 (Berkeley) 8/22/94
- * $Id: vfs_cache.c,v 1.12 1995/03/19 09:33:51 davidg Exp $
+ * $Id: vfs_cache.c,v 1.13 1995/04/04 02:01:13 davidg Exp $
*/
#include <sys/param.h>
@@ -271,7 +271,7 @@ cache_purge(vp)
vp->v_id = ++nextvnodeid;
if (nextvnodeid != 0)
return;
- for (ncpp = &nchashtbl[nchash]; ncpp >= nchashtbl; ncpp--) {
+ for (ncpp = &nchashtbl[nchash - 1]; ncpp >= nchashtbl; ncpp--) {
while(ncpp->lh_first)
PURGE(ncpp->lh_first);
}
@@ -296,7 +296,7 @@ cache_purgevfs(mp)
struct namecache *ncp, *nxtcp;
/* Scan hash tables for applicable entries */
- for (ncpp = &nchashtbl[nchash]; ncpp >= nchashtbl; ncpp--) {
+ for (ncpp = &nchashtbl[nchash - 1]; ncpp >= nchashtbl; ncpp--) {
ncp = ncpp->lh_first;
while(ncp) {
if (ncp->nc_dvpid != ncp->nc_dvp->v_id ||