Whamcloud - gitweb
b=17479
authoryury <yury>
Thu, 13 Nov 2008 09:43:34 +0000 (09:43 +0000)
committeryury <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

index 9442bf7..fb86c6c 100644 (file)
@@ -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);