Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4287b6a
)
b=17479
author
yury
<yury>
Thu, 13 Nov 2008 09:43:34 +0000
(09:43 +0000)
committer
yury
<yury>
Thu, 13 Nov 2008 09:43:34 +0000
(09:43 +0000)
r=adilger,behlendorf1
- avoid div/mod in lustre_hash code
lustre/ptlrpc/connection.c
patch
|
blob
|
history
diff --git
a/lustre/ptlrpc/connection.c
b/lustre/ptlrpc/connection.c
index
9442bf7
..
fb86c6c
100644
(file)
--- a/
lustre/ptlrpc/connection.c
+++ b/
lustre/ptlrpc/connection.c
@@
-143,7
+143,7
@@
int ptlrpc_connection_init(void)
{
ENTRY;
- conn_hash = lustre_hash_init("CONN_HASH",
32, 32768
,
+ conn_hash = lustre_hash_init("CONN_HASH",
5, 15
,
&conn_hash_ops, LH_REHASH);
if (!conn_hash)
RETURN(-ENOMEM);