zdb: Fix false leak report for BRT objects
[zfs.git] / config / kernel-inode-set-iversion.m4
blobdd415de324a7d8e4de3eada2ecc860f85b39b989
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_SRC_INODE_SET_IVERSION], [
6         ZFS_LINUX_TEST_SRC([inode_set_iversion], [
7                 #include <linux/iversion.h>
8         ],[
9                 struct inode inode;
10                 inode_set_iversion(&inode, 1);
11         ])
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], [
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         ])