From 62190652f1f75317290e9b4c00af0843aebf3c44 Mon Sep 17 00:00:00 2001 From: yamt Date: Tue, 20 Jul 2004 22:00:29 +0000 Subject: [PATCH] revert nfs_vnops.c rev.1.189. it's no longer needed because cache_enter() has been changed to handle duplicated entries by itsself. --- sys/nfs/nfs_vnops.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index b339e0efe5c2..3e1e985f5353 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -1,4 +1,4 @@ -/* $NetBSD: nfs_vnops.c,v 1.206 2004/07/18 07:41:42 yamt Exp $ */ +/* $NetBSD: nfs_vnops.c,v 1.207 2004/07/20 22:00:29 yamt Exp $ */ /* * Copyright (c) 1989, 1993 @@ -39,7 +39,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.206 2004/07/18 07:41:42 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.207 2004/07/20 22:00:29 yamt Exp $"); #include "opt_inet.h" #include "opt_nfs.h" @@ -2948,11 +2948,9 @@ nfs_readdirplusrpc(vp, uiop, cred) cp = cnp->cn_nameptr + cnp->cn_namelen; cnp->cn_hash = namei_hash(cnp->cn_nameptr, &cp); - if (cnp->cn_namelen <= NCHNAMLEN) { - cache_purge1(ndp->ni_dvp, cnp, 0); + if (cnp->cn_namelen <= NCHNAMLEN) nfs_cache_enter(ndp->ni_dvp, ndp->ni_vp, cnp); - } } } } else {