]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-dirty-inode.m4
ztest: scrub ddt repair
[mirror_zfs.git] / config / kernel-dirty-inode.m4
CommitLineData
8780c539
BB
1dnl #
2dnl # 3.0 API change
3dnl # The sops->dirty_inode() callbacks were updated to take a flags
4dnl # argument. This allows the greater control over whether the
5dnl # filesystem needs to push out a transaction or not.
6dnl #
7AC_DEFUN([ZFS_AC_KERNEL_DIRTY_INODE_WITH_FLAGS], [
8 AC_MSG_CHECKING([whether sops->dirty_inode() wants flags])
9 ZFS_LINUX_TRY_COMPILE([
10 #include <linux/fs.h>
8780c539 11
c38367c7
RY
12 void dirty_inode(struct inode *a, int b) { return; }
13
14 static const struct super_operations
15 sops __attribute__ ((unused)) = {
16 .dirty_inode = dirty_inode,
17 };
18 ],[
8780c539
BB
19 ],[
20 AC_MSG_RESULT([yes])
21 AC_DEFINE(HAVE_DIRTY_INODE_WITH_FLAGS, 1,
22 [sops->dirty_inode() wants flags])
23 ],[
24 AC_MSG_RESULT([no])
25 ])
26])