+static inline int mdc_prep_elc_req(struct obd_export *exp,
+ struct ptlrpc_request *req, int opc,
+ struct list_head *cancels, int count)
+{
+ return ldlm_prep_elc_req(exp, req, LUSTRE_MDS_VERSION, opc, 0, cancels,
+ 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);
+}
+