1 AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_TIMES], [
5 dnl # timespec64_trunc() replaced by timestamp_truncate() interface.
7 ZFS_LINUX_TEST_SRC([timestamp_truncate], [
13 memset(&ts, 0, sizeof(ts));
14 ts = timestamp_truncate(ts, &ip);
19 dnl # i_atime, i_mtime, and i_ctime changed from timespec to timespec64.
21 ZFS_LINUX_TEST_SRC([inode_times], [
27 memset(&ip, 0, sizeof(ip));
32 AC_DEFUN([ZFS_AC_KERNEL_INODE_TIMES], [
33 AC_MSG_CHECKING([whether timestamp_truncate() exists])
34 ZFS_LINUX_TEST_RESULT([timestamp_truncate], [
36 AC_DEFINE(HAVE_INODE_TIMESTAMP_TRUNCATE, 1,
37 [timestamp_truncate() exists])
42 AC_MSG_CHECKING([whether inode->i_*time's are timespec64])
43 ZFS_LINUX_TEST_RESULT([inode_times], [
47 AC_DEFINE(HAVE_INODE_TIMESPEC64_TIMES, 1,
48 [inode->i_*time's are timespec64])