]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-fadvise.m4
Linux 6.6 compat: fsync_bdev() has been removed in favor of sync_blockdev()
[mirror_zfs.git] / config / kernel-fadvise.m4
CommitLineData
320f0c60
FY
1dnl #
2dnl # Linux 4.19 API
3dnl #
4AC_DEFUN([ZFS_AC_KERNEL_SRC_FADVISE], [
5 ZFS_LINUX_TEST_SRC([file_fadvise], [
6 #include <linux/fs.h>
7
8 static const struct file_operations
9 fops __attribute__ ((unused)) = {
10 .fadvise = NULL,
11 };
12 ],[])
13])
14
15AC_DEFUN([ZFS_AC_KERNEL_FADVISE], [
16 AC_MSG_CHECKING([whether fops->fadvise() exists])
17 ZFS_LINUX_TEST_RESULT([file_fadvise], [
18 AC_MSG_RESULT(yes)
19 AC_DEFINE(HAVE_FILE_FADVISE, 1, [fops->fadvise() exists])
20 ],[
21 AC_MSG_RESULT(no)
22 ])
23])