Whamcloud - gitweb
LU-6215 llite: handle new_sync_[read|write] removal
[fs/lustre-release.git] / lustre / autoconf / lustre-core.m4
index 2ce6386..0d83e19 100644 (file)
@@ -1823,6 +1823,17 @@ iov_iter_rw, [
 ]) # LC_IOV_ITER_RW
 
 #
+# LC_HAVE_SYNC_READ_WRITE
+#
+# 4.1 new_sync_[read|write] no longer exported
+#
+AC_DEFUN([LC_HAVE_SYNC_READ_WRITE], [
+LB_CHECK_EXPORT([new_sync_read], [fs/read_write.c],
+       [AC_DEFINE(HAVE_SYNC_READ_WRITE, 1,
+                       [new_sync_[read|write] is exported by the kernel])])
+]) # LC_HAVE_SYNC_READ_WRITE
+
+#
 # LC_PROG_LINUX
 #
 # Lustre linux kernel checks
@@ -1971,6 +1982,7 @@ AC_DEFUN([LC_PROG_LINUX], [
 
        # 4.1.0
        LC_IOV_ITER_RW
+       LC_HAVE_SYNC_READ_WRITE
 
        #
        AS_IF([test "x$enable_server" != xno], [