X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fautoconf%2Flustre-core.m4;h=1904bcd6b38d534d5c5b606d389d603425e6ac75;hb=ca3dc23ce4265292abcf41375f5c7827d5b38b43;hp=db0f02ab813beaf9b687561efb8cacc84c60298a;hpb=18f828429c3f1dbf7cd69bac58a0465a9794b728;p=fs%2Flustre-release.git diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index db0f02a..1904bcd 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -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 +],[ + ((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