2012-12-12 04:58:44 +04:00
|
|
|
dnl #
|
|
|
|
dnl # 3.0 API change
|
|
|
|
dnl # The sops->dirty_inode() callbacks were updated to take a flags
|
|
|
|
dnl # argument. This allows the greater control over whether the
|
|
|
|
dnl # filesystem needs to push out a transaction or not.
|
|
|
|
dnl #
|
2019-10-01 22:50:34 +03:00
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_DIRTY_INODE], [
|
|
|
|
ZFS_LINUX_TEST_SRC([dirty_inode_with_flags], [
|
2012-12-12 04:58:44 +04:00
|
|
|
#include <linux/fs.h>
|
|
|
|
|
2024-01-23 02:50:53 +03:00
|
|
|
static void dirty_inode(struct inode *a, int b) { return; }
|
2013-02-15 03:54:04 +04:00
|
|
|
|
|
|
|
static const struct super_operations
|
|
|
|
sops __attribute__ ((unused)) = {
|
|
|
|
.dirty_inode = dirty_inode,
|
|
|
|
};
|
2019-10-01 22:50:34 +03:00
|
|
|
],[])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_DIRTY_INODE], [
|
|
|
|
AC_MSG_CHECKING([whether sops->dirty_inode() wants flags])
|
|
|
|
ZFS_LINUX_TEST_RESULT([dirty_inode_with_flags], [
|
2012-12-12 04:58:44 +04:00
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
AC_DEFINE(HAVE_DIRTY_INODE_WITH_FLAGS, 1,
|
2019-10-01 22:50:34 +03:00
|
|
|
[sops->dirty_inode() wants flags])
|
2012-12-12 04:58:44 +04:00
|
|
|
],[
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
])
|
|
|
|
])
|