Linux 3.6: d_alias and i_dentry are now hlists
[openafs.git] / src / cf / linux-test4.m4
index 6c1ae52..75561bf 100644 (file)
@@ -689,3 +689,16 @@ AC_DEFUN([LINUX_DENTRY_OPEN_TAKES_PATH], [
                        [define if dentry_open takes a path argument],
                        [-Werror])
 ])
+
+
+AC_DEFUN([LINUX_D_ALIAS_IS_HLIST], [
+  AC_CHECK_LINUX_BUILD([whether dentry->d_alias is an hlist],
+                       [ac_cv_linux_d_alias_is_hlist],
+                       [#include <linux/fs.h>],
+                       [struct dentry *d = NULL;
+                       struct hlist_node *hn = NULL;
+                       d->d_alias = *hn;],
+                       [D_ALIAS_IS_HLIST],
+                       [define if dentry->d_alias is an hlist],
+                       [])
+])