3 dnl # fsync_bdev was removed in favor of sync_blockdev
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_SYNC_BDEV], [
6 ZFS_LINUX_TEST_SRC([fsync_bdev], [
7 #include <linux/blkdev.h>
12 ZFS_LINUX_TEST_SRC([sync_blockdev], [
13 #include <linux/blkdev.h>
19 AC_DEFUN([ZFS_AC_KERNEL_SYNC_BDEV], [
20 AC_MSG_CHECKING([whether fsync_bdev() exists])
21 ZFS_LINUX_TEST_RESULT([fsync_bdev], [
23 AC_DEFINE(HAVE_FSYNC_BDEV, 1,
24 [fsync_bdev() is declared in include/blkdev.h])
26 AC_MSG_CHECKING([whether sync_blockdev() exists])
27 ZFS_LINUX_TEST_RESULT([sync_blockdev], [
29 AC_DEFINE(HAVE_SYNC_BLOCKDEV, 1,
30 [sync_blockdev() is declared in include/blkdev.h])
33 [neither fsync_bdev() nor sync_blockdev() exist])