From 819c0a8bf08ff4e0405040512eb4f7682e7ce91c Mon Sep 17 00:00:00 2001 From: yury Date: Thu, 13 Nov 2008 09:43:24 +0000 Subject: [PATCH] b=17479 r=adilger,behlendorf1 - avoid div/mod in lustre_hash code --- lustre/lov/lov_obd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c index aef32ae..887eca3 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -911,7 +911,7 @@ static int lov_setup(struct obd_device *obd, obd_count len, void *buf) /* Default priority is toward free space balance */ lov->lov_qos.lq_prio_free = 232; - lov->lov_pools_hash_body = lustre_hash_init("POOLS", 128, 128, + lov->lov_pools_hash_body = lustre_hash_init("POOLS", 7, 7, &pool_hash_operations, 0); CFS_INIT_LIST_HEAD(&lov->lov_pool_list); lov->lov_pool_count = 0; -- 1.8.3.1