]>
Commit | Line | Data |
---|---|---|
7ca25051 D |
1 | dnl # |
2 | dnl # Linux 4.9-rc5+ ABI, removal of the .aio_fsync field | |
3 | dnl # | |
608f8749 BB |
4 | AC_DEFUN([ZFS_AC_KERNEL_SRC_AIO_FSYNC], [ |
5 | ZFS_LINUX_TEST_SRC([aio_fsync], [ | |
7ca25051 D |
6 | #include <linux/fs.h> |
7 | ||
8 | static const struct file_operations | |
9 | fops __attribute__ ((unused)) = { | |
10 | .aio_fsync = NULL, | |
11 | }; | |
608f8749 BB |
12 | ],[]) |
13 | ]) | |
14 | ||
15 | AC_DEFUN([ZFS_AC_KERNEL_AIO_FSYNC], [ | |
16 | AC_MSG_CHECKING([whether fops->aio_fsync() exists]) | |
17 | ZFS_LINUX_TEST_RESULT([aio_fsync], [ | |
7ca25051 D |
18 | AC_MSG_RESULT(yes) |
19 | AC_DEFINE(HAVE_FILE_AIO_FSYNC, 1, [fops->aio_fsync() exists]) | |
20 | ],[ | |
21 | AC_MSG_RESULT(no) | |
22 | ]) | |
23 | ]) |