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/nfs/nfs_common.c | |
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/nfs/nfs_common.c')
-rw-r--r-- | sys/nfs/nfs_common.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/nfs/nfs_common.c b/sys/nfs/nfs_common.c index 7fd9d9d..b62b21d 100644 --- a/sys/nfs/nfs_common.c +++ b/sys/nfs/nfs_common.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--; } |