Whamcloud - gitweb
LU-5417 obdclass: fix comparison between signed and unsigned
[fs/lustre-release.git] / lustre / include / lustre_lite.h
index 7729bdb..666855a 100644 (file)
 
 #if defined(__linux__)
 #include <linux/lustre_lite.h>
-#elif defined(__APPLE__)
-#include <darwin/lustre_lite.h>
-#elif defined(__WINNT__)
-#include <winnt/lustre_lite.h>
 #else
 #error Unsupported operating system.
 #endif
 
 #include <obd_class.h>
-#include <obd_ost.h>
 #include <lustre_net.h>
-#include <lustre_mds.h>
 #include <lustre_ha.h>
 
 /* 4UL * 1024 * 1024 */
@@ -143,19 +137,6 @@ static inline void ll_dir_chain_fini(struct ll_dir_chain *chain)
 {
 }
 
-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 as index 0 because otherwise we'll save it at
-        * page index end (~0UL) and it causes truncate_inode_pages_range()
-        * to loop forever.
-        */
-       return ~0UL - (hash + !hash);
-}
-
 /** @} lite */
 
 #endif