]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - config/kernel-inode-set-iversion.m4
Revert "Develop tests for issues #5866 and #8858"
[FreeBSD/FreeBSD.git] / config / kernel-inode-set-iversion.m4
1 dnl #
2 dnl # 4.16 API change
3 dnl # inode_set_iversion introduced to set i_version
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_INODE_SET_IVERSION], [
6         AC_MSG_CHECKING([whether inode_set_iversion() exists])
7         ZFS_LINUX_TRY_COMPILE([
8                 #include <linux/iversion.h>
9         ],[
10                 struct inode inode;
11                 inode_set_iversion(&inode, 1);
12         ],[
13                 AC_MSG_RESULT(yes)
14                 AC_DEFINE(HAVE_INODE_SET_IVERSION, 1,
15                     [inode_set_iversion() exists])
16         ],[
17                 AC_MSG_RESULT(no)
18         ])
19 ])