From 7d838ebaa0137e39311237df5bfc4329a189e4c0 Mon Sep 17 00:00:00 2001 From: yury Date: Thu, 13 Nov 2008 09:43:34 +0000 Subject: [PATCH] b=17479 r=adilger,behlendorf1 - avoid div/mod in lustre_hash code --- lustre/ptlrpc/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/ptlrpc/connection.c b/lustre/ptlrpc/connection.c index 9442bf7..fb86c6c 100644 --- 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); -- 1.8.3.1