]>
Commit | Line | Data |
---|---|---|
18f57327 BB |
1 | dnl # |
2 | dnl # 4.16 API change | |
3 | dnl # inode_set_iversion introduced to set i_version | |
4 | dnl # | |
608f8749 BB |
5 | AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_SET_IVERSION], [ |
6 | ZFS_LINUX_TEST_SRC([inode_set_iversion], [ | |
18f57327 BB |
7 | #include <linux/iversion.h> |
8 | ],[ | |
9 | struct inode inode; | |
10 | inode_set_iversion(&inode, 1); | |
608f8749 BB |
11 | ]) |
12 | ]) | |
13 | ||
14 | AC_DEFUN([ZFS_AC_KERNEL_INODE_SET_IVERSION], [ | |
15 | AC_MSG_CHECKING([whether inode_set_iversion() exists]) | |
16 | ZFS_LINUX_TEST_RESULT([inode_set_iversion], [ | |
18f57327 BB |
17 | AC_MSG_RESULT(yes) |
18 | AC_DEFINE(HAVE_INODE_SET_IVERSION, 1, | |
19 | [inode_set_iversion() exists]) | |
20 | ],[ | |
21 | AC_MSG_RESULT(no) | |
22 | ]) | |
23 | ]) |