Whamcloud - gitweb
LU-13163 mdc: new kernel function xa_is_value()
[fs/lustre-release.git] / lustre / autoconf / lustre-core.m4
index 73bac48..a39489a 100644 (file)
@@ -232,23 +232,6 @@ AS_IF([test "x$enable_gss_keyring" != xno], [
 ]) # LC_CONFIG_GSS_KEYRING
 
 #
-# LC_HAVE_CRED_TGCRED
-#
-# rhel7 struct cred has no member tgcred
-#
-AC_DEFUN([LC_HAVE_CRED_TGCRED], [
-LB_CHECK_COMPILE([if 'struct cred' has member 'tgcred'],
-cred_tgcred, [
-       #include <linux/cred.h>
-],[
-       ((struct cred *)0)->tgcred = NULL;
-],[
-       AC_DEFINE(HAVE_CRED_TGCRED, 1,
-               [struct cred has member tgcred])
-])
-]) # LC_HAVE_CRED_TGCRED
-
-#
 # LC_KEY_TYPE_INSTANTIATE_2ARGS
 #
 # rhel7 key_type->instantiate takes 2 args (struct key, struct key_preparsed_payload)
@@ -293,7 +276,6 @@ AC_MSG_RESULT([$enable_gss])
 
 AS_IF([test "x$enable_gss" != xno], [
        LC_CONFIG_GSS_KEYRING
-       LC_HAVE_CRED_TGCRED
        LC_KEY_TYPE_INSTANTIATE_2ARGS
        sunrpc_required=$enable_gss
        LC_CONFIG_SUNRPC
@@ -2789,6 +2771,23 @@ EXTRA_KCFLAGS="$tmp_flags"
 ]) # LC_INODE_TIMESPEC64
 
 #
+# LC_XA_IS_VALUE
+# kernel 4.19-rc6 commit 3159f943aafdbacb2f94c38fdaadabf2bbde2a14
+# xarray: Replace exceptional entries
+# adds xa_is_value
+#
+AC_DEFUN([LC_XA_IS_VALUE], [
+LB_CHECK_COMPILE([xa_is_value exist],
+xa_is_value, [
+       #include <linux/xarray.h>
+],[
+       xa_is_value(NULL);
+],[
+       AC_DEFINE(HAVE_XA_IS_VALUE, 1, [xa_is_value exist])
+])
+]) # LC_XA_IS_VALUE
+
+#
 # LC___XA_SET_MARK
 #
 # kernel 4.20 commit v4.19-rc5-248-g9b89a0355144
@@ -3160,6 +3159,7 @@ AC_DEFUN([LC_PROG_LINUX], [
 
        # 4.18
        LC_INODE_TIMESPEC64
+       LC_XA_IS_VALUE
 
        # 4.20
        LC___XA_SET_MARK