diff options
author | phk <phk@FreeBSD.org> | 1999-10-03 12:18:29 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-10-03 12:18:29 +0000 |
commit | 322edeeaa9db24f692a897cb4796b2fb096d1a2c (patch) | |
tree | ec3f444d06a5625603881122124496a55eaa80cb /sys/nfsclient | |
parent | 0a9033ff881571171d2114a65ff650b7d69e1392 (diff) | |
download | FreeBSD-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/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_subs.c | 2 | ||||
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/sys/nfsclient/nfs_subs.c b/sys/nfsclient/nfs_subs.c index 7fd9d9d..b62b21d 100644 --- a/sys/nfsclient/nfs_subs.c +++ b/sys/nfsclient/nfs_subs.c @@ -1510,7 +1510,6 @@ nfs_namei(ndp, fhp, len, slp, nam, mdp, dposp, retdirp, p, kerbflag, pubflag) tocp = cnp->cn_pnbuf; md = *mdp; rem = mtod(md, caddr_t) + md->m_len - fromcp; - cnp->cn_hash = 0; for (i = 0; i < len; i++) { while (rem == 0) { md = md->m_next; @@ -1525,7 +1524,6 @@ nfs_namei(ndp, fhp, len, slp, nam, mdp, dposp, retdirp, p, kerbflag, pubflag) error = EACCES; goto out; } - cnp->cn_hash += (unsigned char)*fromcp; *tocp++ = *fromcp++; rem--; } diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c index 370a33d..2d736f5 100644 --- a/sys/nfsclient/nfs_vnops.c +++ b/sys/nfsclient/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 { |