summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfs_vnops.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-10-03 12:18:29 +0000
committerphk <phk@FreeBSD.org>1999-10-03 12:18:29 +0000
commit322edeeaa9db24f692a897cb4796b2fb096d1a2c (patch)
treeec3f444d06a5625603881122124496a55eaa80cb /sys/nfs/nfs_vnops.c
parent0a9033ff881571171d2114a65ff650b7d69e1392 (diff)
downloadFreeBSD-src-322edeeaa9db24f692a897cb4796b2fb096d1a2c.zip
FreeBSD-src-322edeeaa9db24f692a897cb4796b2fb096d1a2c.tar.gz
Before we start to mess with the VFS name-cache clean things up a little bit:
Isolate the namecache in its own file, and give it a dedicated malloc type.
Diffstat (limited to 'sys/nfs/nfs_vnops.c')
-rw-r--r--sys/nfs/nfs_vnops.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c
index 370a33d..2d736f5 100644
--- a/sys/nfs/nfs_vnops.c
+++ b/sys/nfs/nfs_vnops.c
@@ -2373,10 +2373,6 @@ nfs_readdirplusrpc(vp, uiop, cred)
dp->d_type =
IFTODT(VTTOIF(np->n_vattr.va_type));
ndp->ni_vp = newvp;
- cnp->cn_hash = 0;
- for (cp = cnp->cn_nameptr, i = 1; i <= len;
- i++, cp++)
- cnp->cn_hash += (unsigned char)*cp;
cache_enter(ndp->ni_dvp, ndp->ni_vp, cnp);
}
} else {
OpenPOWER on IntegriCloud