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-4597 clio: clear nowait flag agl lock re-enqueue
[fs/lustre-release.git]
/
lustre
/
mdc
/
mdc_internal.h
diff --git
a/lustre/mdc/mdc_internal.h
b/lustre/mdc/mdc_internal.h
index
c87d86f
..
a49e9cd
100644
(file)
--- a/
lustre/mdc/mdc_internal.h
+++ b/
lustre/mdc/mdc_internal.h
@@
-173,4
+173,14
@@
static inline int mdc_prep_elc_req(struct obd_export *exp,
count);
}
+static inline unsigned long hash_x_index(__u64 hash, int hash64)
+{
+#ifdef __KERNEL__
+ if (BITS_PER_LONG == 32 && hash64)
+ hash >>= 32;
+#endif
+ /* save hash 0 with hash 1 */
+ return ~0UL - (hash + !hash);
+}
+
#endif