2 dnl # Check file_operations->fsync interface.
4 AC_DEFUN([ZFS_AC_KERNEL_SRC_FSYNC], [
5 ZFS_LINUX_TEST_SRC([fsync_without_dentry], [
8 static int test_fsync(struct file *f, int x) { return 0; }
10 static const struct file_operations
11 fops __attribute__ ((unused)) = {
16 ZFS_LINUX_TEST_SRC([fsync_range], [
19 static int test_fsync(struct file *f, loff_t a, loff_t b, int c)
22 static const struct file_operations
23 fops __attribute__ ((unused)) = {
29 AC_DEFUN([ZFS_AC_KERNEL_FSYNC], [
31 dnl # Linux 2.6.35 - Linux 3.0 API
33 AC_MSG_CHECKING([whether fops->fsync() wants no dentry])
34 ZFS_LINUX_TEST_RESULT([fsync_without_dentry], [
36 AC_DEFINE(HAVE_FSYNC_WITHOUT_DENTRY, 1,
37 [fops->fsync() without dentry])
42 dnl # Linux 3.1 - 3.x API
44 AC_MSG_CHECKING([whether fops->fsync() wants range])
45 ZFS_LINUX_TEST_RESULT([fsync_range], [
46 AC_MSG_RESULT([range])
47 AC_DEFINE(HAVE_FSYNC_RANGE, 1,
48 [fops->fsync() with range])
50 ZFS_LINUX_TEST_ERROR([fops->fsync])