X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fautoconf%2Flustre-core.m4;h=a4b33f29b9e97c5ccfd333a7370dee99c7fabf16;hb=337aafa282d0f1127eef8b7ee4f865171f48bc12;hp=8ee15f18869539e8b7f6b1664da7b22489d0c8c2;hpb=34acfbc2bfe502d18c12ba35771bde7c4a0f7906;p=fs%2Flustre-release.git diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 8ee15f1..a4b33f2 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -2309,6 +2309,28 @@ in_compat_syscall, [ ]) # LC_HAVE_IN_COMPAT_SYSCALL # +# LC_DIRECTIO_2ARGS +# +# Kernel version 4.7 commit c8b8e32d700fe943a935e435ae251364d016c497 +# direct-io: eliminate the offset argument to ->direct_IO +# +AC_DEFUN([LC_DIRECTIO_2ARGS], [ +LB_CHECK_COMPILE([if '->direct_IO()' taken 2 arguments], +direct_io_2args, [ + #include +],[ + struct address_space_operations ops; + struct iov_iter *iter = NULL; + struct kiocb *iocb = NULL; + int rc; + rc = ops.direct_IO(iocb, iter); +],[ + AC_DEFINE(HAVE_DIRECTIO_2ARGS, 1, + [direct_IO need 2 arguments]) +]) +]) # LC_DIRECTIO_2ARGS + +# # LC_HAVE_POSIX_ACL_VALID_USER_NS # # 4.8 posix_acl_valid takes struct user_namespace @@ -2534,6 +2556,9 @@ AC_DEFUN([LC_PROG_LINUX], [ # 4.6 LC_HAVE_IN_COMPAT_SYSCALL + # 4.7 + LC_DIRECTIO_2ARGS + # 4.8 LC_HAVE_POSIX_ACL_VALID_USER_NS LC_D_COMPARE_4ARGS