Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-376 Positive LL_DIR_END_OFF to indicate the tail of dir hash/offset
[fs/lustre-release.git]
/
lustre
/
include
/
lustre_lite.h
diff --git
a/lustre/include/lustre_lite.h
b/lustre/include/lustre_lite.h
index
ac71d69
..
7fa9937
100644
(file)
--- a/
lustre/include/lustre_lite.h
+++ b/
lustre/include/lustre_lite.h
@@
-150,12
+150,11
@@
static inline void ll_dir_chain_fini(struct ll_dir_chain *chain)
{
}
-static inline unsigned long hash_x_index(__u64 hash)
+static inline unsigned long hash_x_index(__u64 hash
, int hash64
)
{
#ifdef __KERNEL__
-# if BITS_PER_LONG == 32
- hash >>= 32;
-# endif
+ if (BITS_PER_LONG == 32 && hash64)
+ hash >>= 32;
#endif
return ~0UL - hash;
}