]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-dirty-inode.m4
linux 6.2 compat: get_acl() got moved to get_inode_acl() in 6.2
[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 #
608f8749
BB
7AC_DEFUN([ZFS_AC_KERNEL_SRC_DIRTY_INODE], [
8 ZFS_LINUX_TEST_SRC([dirty_inode_with_flags], [
8780c539 9 #include <linux/fs.h>
8780c539 10
c38367c7
RY
11 void dirty_inode(struct inode *a, int b) { return; }
12
13 static const struct super_operations
14 sops __attribute__ ((unused)) = {
15 .dirty_inode = dirty_inode,
16 };
608f8749
BB
17 ],[])
18])
19
20AC_DEFUN([ZFS_AC_KERNEL_DIRTY_INODE], [
21 AC_MSG_CHECKING([whether sops->dirty_inode() wants flags])
22 ZFS_LINUX_TEST_RESULT([dirty_inode_with_flags], [
8780c539
BB
23 AC_MSG_RESULT([yes])
24 AC_DEFINE(HAVE_DIRTY_INODE_WITH_FLAGS, 1,
608f8749 25 [sops->dirty_inode() wants flags])
8780c539
BB
26 ],[
27 AC_MSG_RESULT([no])
28 ])
29])