Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c3ddf3
)
b=17479
author
yury
<yury>
Thu, 13 Nov 2008 09:43:36 +0000
(09:43 +0000)
committer
yury
<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
patch
|
blob
|
history
diff --git
a/lustre/quota/quota_context.c
b/lustre/quota/quota_context.c
index
eef66c3
..
e79fef9
100644
(file)
--- 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);