]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-inode-set-iversion.m4
contrib: bash_completion.d: make install destination vendor dependent
[mirror_zfs.git] / config / kernel-inode-set-iversion.m4
CommitLineData
18f57327
BB
1dnl #
2dnl # 4.16 API change
3dnl # inode_set_iversion introduced to set i_version
4dnl #
608f8749
BB
5AC_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
14AC_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])