Whamcloud - gitweb
b=17479
authoryury <yury>
Thu, 13 Nov 2008 09:43:36 +0000 (09:43 +0000)
committeryury <yury>
Thu, 13 Nov 2008 09:43:36 +0000 (09:43 +0000)
 r=adilger,behlendorf1

 - avoid div/mod in lustre_hash code

lustre/quota/quota_context.c

index eef66c3..e79fef9 100644 (file)
@@ -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);