Whamcloud - gitweb
LU-10092 First phase of persistent client cache project merging
[fs/lustre-release.git] / lustre / autoconf / lustre-core.m4
index 6df57bc..cc4e8b6 100644 (file)
@@ -3146,6 +3146,27 @@ i_pages, [
 ]) # LC_I_PAGES
 
 #
+# LC_INODE_TIMESPEC64
+#
+# kernel 4.18 commit 95582b00838837fc07e042979320caf917ce3fe6
+# inode timestamps switched to timespec64
+#
+AC_DEFUN([LC_INODE_TIMESPEC64], [
+LB_CHECK_COMPILE([if inode timestamps are struct timespec64],
+inode_timespec64, [
+       #include <linux/fs.h>
+],[
+       struct inode inode = {};
+       struct timespec64 ts = {};
+
+       inode.i_atime = ts;
+],[
+       AC_DEFINE(HAVE_INODE_TIMESPEC64, 1,
+               [inode times are using timespec64])
+])
+]) # LC_INODE_TIMESPEC64
+
+#
 # LC_PROG_LINUX
 #
 # Lustre linux kernel checks
@@ -3397,6 +3418,9 @@ AC_DEFUN([LC_PROG_LINUX], [
        # 4.17
        LC_I_PAGES
 
+       # 4.18
+       LC_INODE_TIMESPEC64
+
        # kernel patch to extend integrity interface
        LC_BIO_INTEGRITY_PREP_FN