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:
acd7b13
)
correct bit size for computing hash in client
author
wangdi
<wangdi>
Thu, 12 Oct 2006 07:40:01 +0000
(07:40 +0000)
committer
wangdi
<wangdi>
Thu, 12 Oct 2006 07:40:01 +0000
(07:40 +0000)
lustre/obdclass/mea.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/mea.c
b/lustre/obdclass/mea.c
index
89dc781
..
cf991cd
100644
(file)
--- a/
lustre/obdclass/mea.c
+++ b/
lustre/obdclass/mea.c
@@
-68,7
+68,7
@@
static int mea_hash_segment(int count, char *name, int namelen)
struct ldiskfs_dx_hash_info hinfo;
int result;
__u64 hash;
- __u
32
hash_segment = MAX_HASH_SIZE;
+ __u
64
hash_segment = MAX_HASH_SIZE;
if (namelen == 0)
return 0;
@@
-84,7
+84,7
@@
static int mea_hash_segment(int count, char *name, int namelen)
hash = (hinfo.hash << 1) & 0x7fffffff;
do_div(hash_segment, count);
do_div(hash, hash_segment);
- LASSERT
(hash <= count
);
+ LASSERT
F(hash <= count, "hash "LPU64" count "LPU64" \n"
);
return hash;
}