summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfsstats.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-03-17 09:31:06 +0000
committerpeter <peter@FreeBSD.org>2001-03-17 09:31:06 +0000
commit670e711dd19510316ecaa1f30d78f16ba66492f6 (patch)
treedf728469695bfff83fcf93f9e9a460606a09b3f1 /sys/nfsclient/nfsstats.h
parent400aa0706c1d55d12d0405666ddac2d3e3ec5d69 (diff)
downloadFreeBSD-src-670e711dd19510316ecaa1f30d78f16ba66492f6.zip
FreeBSD-src-670e711dd19510316ecaa1f30d78f16ba66492f6.tar.gz
Use a generic implementation of the Fowler/Noll/Vo hash (FNV hash).
Make the name cache hash as well as the nfsnode hash use it. As a special tweak, create an unsigned version of register_t. This allows us to use a special tweak for the 64 bit versions that significantly speeds up the i386 version (ie: int64 XOR int64 is slower than int64 XOR int32). The code layout is a little strange for the string function, but I was able to get between 5 to 10% improvement over the original version I started with. The layout affects gcc code generation choices and this way was fastest on x86 and alpha. Note that 'CPUTYPE=p3' etc makes a fair difference to this. It is around 45% faster with -march=pentiumpro on a p6 cpu.
Diffstat (limited to 'sys/nfsclient/nfsstats.h')
-rw-r--r--sys/nfsclient/nfsstats.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/nfsclient/nfsstats.h b/sys/nfsclient/nfsstats.h
index 6423e5a..259ec20 100644
--- a/sys/nfsclient/nfsstats.h
+++ b/sys/nfsclient/nfsstats.h
@@ -633,7 +633,6 @@ int nfs_savenickauth __P((struct nfsmount *, struct ucred *, int,
int nfs_adv __P((struct mbuf **, caddr_t *, int, int));
void nfs_nhinit __P((void));
void nfs_timer __P((void*));
-u_long nfs_hash __P((nfsfh_t *, int));
int nfsrv_dorec __P((struct nfssvc_sock *, struct nfsd *,
struct nfsrv_descript **));
int nfsrv_getcache __P((struct nfsrv_descript *, struct nfssvc_sock *,
OpenPOWER on IntegriCloud