]>
Commit | Line | Data |
---|---|---|
8780c539 BB |
1 | dnl # |
2 | dnl # 3.0 API change | |
3 | dnl # The sops->dirty_inode() callbacks were updated to take a flags | |
4 | dnl # argument. This allows the greater control over whether the | |
5 | dnl # filesystem needs to push out a transaction or not. | |
6 | dnl # | |
7 | AC_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> | |
11 | ],[ | |
12 | void (*dirty_inode) (struct inode *, int) = NULL; | |
13 | struct super_operations sops __attribute__ ((unused)); | |
14 | ||
15 | sops.dirty_inode = dirty_inode; | |
16 | ],[ | |
17 | AC_MSG_RESULT([yes]) | |
18 | AC_DEFINE(HAVE_DIRTY_INODE_WITH_FLAGS, 1, | |
19 | [sops->dirty_inode() wants flags]) | |
20 | ],[ | |
21 | AC_MSG_RESULT([no]) | |
22 | ]) | |
23 | ]) |