]) # LIBCFS_SHRINKER_COUNT
#
+# Kernel version 3.16 added rhashtable.h in 7e1e77636e36075eb
+#
+AC_DEFUN([LIBCFS_LINUX_RHASHTABLE_H],[
+LB_CHECK_LINUX_HEADER([linux/rhashtable.h], [
+ AC_DEFINE(HAVE_LINUX_RHASHTABLE_H, 1,
+ [linux/rhashtable.h is present])
+])
+]) # LIBCFS_LINUX_RHASHTABLE_H
+
+#
# Kernel version 3.17 changed hlist_add_after to
# hlist_add_behind
#
LIBCFS_KTIME_BEFORE
LIBCFS_KTIME_COMPARE
LIBCFS_SHRINKER_COUNT
+# 3.16
+LIBCFS_LINUX_RHASHTABLE_H
# 3.17
LIBCFS_HLIST_ADD_AFTER
LIBCFS_TIMESPEC64
#define __LIBCFS_LINUX_HASH_H__
#include <linux/dcache.h>
-#include <linux/rhashtable.h>
u64 cfs_hashlen_string(const void *salt, const char *name);
#endif
#endif /* !HAVE_STRINGHASH */
+#ifdef HAVE_LINUX_RHASHTABLE_H
+#include <linux/rhashtable.h>
#ifndef HAVE_RHASHTABLE_LOOKUP_GET_INSERT_FAST
/**
* rhashtable_lookup_get_insert_fast - lookup and insert object into hash table
return ret;
}
#endif /* !HAVE_RHASHTABLE_LOOKUP_GET_INSERT_FAST */
+#endif /* HAVE_LINUX_RHASHTABLE_H */
#endif /* __LIBCFS_LINUX_MISC_H__ */