2 dnl # Linux 2.6.x - 2.6.34 API
4 AC_DEFUN([ZFS_AC_KERNEL_FSYNC_WITH_DENTRY], [
5 ZFS_LINUX_TRY_COMPILE([
8 int (*fsync) (struct file *, struct dentry *, int) = NULL;
9 struct file_operations fops __attribute__ ((unused));
13 AC_MSG_RESULT([dentry])
14 AC_DEFINE(HAVE_FSYNC_WITH_DENTRY, 1,
15 [fops->fsync() with dentry])
21 dnl # Linux 2.6.35 - Linux 3.0 API
23 AC_DEFUN([ZFS_AC_KERNEL_FSYNC_WITHOUT_DENTRY], [
24 ZFS_LINUX_TRY_COMPILE([
27 int (*fsync) (struct file *, int) = NULL;
28 struct file_operations fops __attribute__ ((unused));
32 AC_MSG_RESULT([no dentry])
33 AC_DEFINE(HAVE_FSYNC_WITHOUT_DENTRY, 1,
34 [fops->fsync() without dentry])
40 dnl # Linux 3.1 -x 3.x API
42 AC_DEFUN([ZFS_AC_KERNEL_FSYNC_RANGE], [
43 ZFS_LINUX_TRY_COMPILE([
46 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
47 struct file_operations fops __attribute__ ((unused));
51 AC_MSG_RESULT([range])
52 AC_DEFINE(HAVE_FSYNC_RANGE, 1,
53 [fops->fsync() with range])
58 AC_DEFUN([ZFS_AC_KERNEL_FSYNC], [
59 AC_MSG_CHECKING([whether fops->fsync() wants])
60 ZFS_AC_KERNEL_FSYNC_WITH_DENTRY
61 ZFS_AC_KERNEL_FSYNC_WITHOUT_DENTRY
62 ZFS_AC_KERNEL_FSYNC_RANGE