zdb: Fix false leak report for BRT objects
[zfs.git] / config / kernel-aio-fsync.m4
blobb4dbf29ba781f1a98b6c9851e59484660c5eeff5
1 dnl #
2 dnl # Linux 4.9-rc5+ ABI, removal of the .aio_fsync field
3 dnl #
4 AC_DEFUN([ZFS_AC_KERNEL_SRC_AIO_FSYNC], [
5         ZFS_LINUX_TEST_SRC([aio_fsync], [
6                 #include <linux/fs.h>
8                 static const struct file_operations
9                     fops __attribute__ ((unused)) = {
10                         .aio_fsync = NULL,
11                 };
12         ],[])
15 AC_DEFUN([ZFS_AC_KERNEL_AIO_FSYNC], [
16         AC_MSG_CHECKING([whether fops->aio_fsync() exists])
17         ZFS_LINUX_TEST_RESULT([aio_fsync], [
18                 AC_MSG_RESULT(yes)
19                 AC_DEFINE(HAVE_FILE_AIO_FSYNC, 1, [fops->aio_fsync() exists])
20         ],[
21                 AC_MSG_RESULT(no)
22         ])