Whamcloud - gitweb
LU-13581 build: xarray and lockdep_is_held const clash
[fs/lustre-release.git] / lustre / include / lustre_compat.h
index fc040f3..5defcfd 100644 (file)
@@ -35,7 +35,6 @@
 
 #include <linux/aio.h>
 #include <linux/fs.h>
-#include <linux/fs_struct.h>
 #include <linux/namei.h>
 #include <linux/pagemap.h>
 #include <linux/posix_acl_xattr.h>
@@ -148,7 +147,7 @@ static inline bool d_is_positive(const struct dentry *dentry)
  * the page cache interaction. Lets keep xa_is_value() separate
  * in old kernels for Xarray support and page cache handling.
  */
-#ifdef HAVE_RADIX_TREE_EXCEPTIONAL_ENTRY
+#ifndef HAVE_XARRAY_SUPPORT
 static inline bool ll_xa_is_value(void *entry)
 {
        return radix_tree_exceptional_entry(entry);