Whamcloud - gitweb
LU-4416 llite: struct kiocb ki_left removed
[fs/lustre-release.git] / lustre / autoconf / lustre-core.m4
index db0f02a..1904bcd 100644 (file)
@@ -1379,6 +1379,23 @@ LB_LINUX_TRY_COMPILE([
 ])
 
 #
+# 3.12 ki_left removed from struct kiocb
+#
+AC_DEFUN([LC_KIOCB_KI_LEFT],
+[AC_MSG_CHECKING([if struct kiocb with ki_left member])
+LB_LINUX_TRY_COMPILE([
+       #include <linux/aio.h>
+],[
+       ((struct kiocb*)0)->ki_left = 0;
+],[
+       AC_DEFINE(HAVE_KIOCB_KI_LEFT, 1, [ki_left exist])
+       AC_MSG_RESULT([yes])
+],[
+       AC_MSG_RESULT([no])
+])
+])
+
+#
 # LC_PROG_LINUX
 #
 # Lustre linux kernel checks
@@ -1485,6 +1502,7 @@ AC_DEFUN([LC_PROG_LINUX],
 
         # 3.12
         LC_OLDSIZE_TRUNCATE_PAGECACHE
+        LC_KIOCB_KI_LEFT
 
         #
         if test x$enable_server != xno ; then