From 5521fc66dc5d2c2603b52e0ae38855b56ce26bda Mon Sep 17 00:00:00 2001 From: yury Date: Thu, 13 Nov 2008 09:43:36 +0000 Subject: [PATCH] b=17479 r=adilger,behlendorf1 - avoid div/mod in lustre_hash code --- lustre/quota/quota_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/quota/quota_context.c b/lustre/quota/quota_context.c index eef66c3..e79fef92 100644 --- a/lustre/quota/quota_context.c +++ b/lustre/quota/quota_context.c @@ -1107,8 +1107,8 @@ qctxt_init(struct obd_device *obd, dqacq_handler_t handler) qctxt->lqc_sync_blk = 0; spin_unlock(&qctxt->lqc_lock); - qctxt->lqc_lqs_hash = lustre_hash_init("LQS_HASH", 128, 128, - &lqs_hash_ops, 0); + qctxt->lqc_lqs_hash = lustre_hash_init("LQS_HASH", 7, 7, + &lqs_hash_ops, 0); if (!qctxt->lqc_lqs_hash) CERROR("initialize hash lqs for %s error!\n", obd->obd_name); -- 1.8.3.1