]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-vfs-fsync.m4
FreeBSD: Add zfs_link_create() error handling
[mirror_zfs.git] / config / kernel-vfs-fsync.m4
CommitLineData
48ef8ba0
BB
1dnl #
2dnl # 2.6.35 API change,
3dnl # Unused 'struct dentry *' removed from vfs_fsync() prototype.
4dnl #
608f8749
BB
5AC_DEFUN([ZFS_AC_KERNEL_SRC_VFS_FSYNC_2ARGS], [
6 ZFS_LINUX_TEST_SRC([vfs_fsync_2args], [
48ef8ba0
BB
7 #include <linux/fs.h>
8 ],[
9 vfs_fsync(NULL, 0);
608f8749
BB
10 ])
11])
12
13AC_DEFUN([ZFS_AC_KERNEL_VFS_FSYNC_2ARGS], [
14 AC_MSG_CHECKING([whether vfs_fsync() wants 2 args])
15 ZFS_LINUX_TEST_RESULT([vfs_fsync_2args], [
48ef8ba0 16 AC_MSG_RESULT(yes)
48ef8ba0 17 ],[
066e8252 18 ZFS_LINUX_TEST_ERROR([vfs_fsync()])
48ef8ba0
BB
19 ])
20])