]> granicus.if.org Git - zfs/blob - config/kernel-vfs-fsync.m4
ZFS mounted NFSv3 shares fail lock reclaims
[zfs] / config / kernel-vfs-fsync.m4
1 dnl #
2 dnl # 2.6.35 API change,
3 dnl # Unused 'struct dentry *' removed from vfs_fsync() prototype.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_2ARGS_VFS_FSYNC], [
6         AC_MSG_CHECKING([whether vfs_fsync() wants 2 args])
7         ZFS_LINUX_TRY_COMPILE([
8                 #include <linux/fs.h>
9         ],[
10                 vfs_fsync(NULL, 0);
11         ],[
12                 AC_MSG_RESULT(yes)
13                 AC_DEFINE(HAVE_2ARGS_VFS_FSYNC, 1, [vfs_fsync() wants 2 args])
14         ],[
15                 AC_MSG_RESULT(no)
16         ])
17 ])