config: remove HAVE_DIRTY_INODE_WITH_FLAGS
Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com>
This commit is contained in:
parent
1d44e8a319
commit
71bb03d206
|
@ -1,29 +0,0 @@
|
||||||
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 #
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_SRC_DIRTY_INODE], [
|
|
||||||
ZFS_LINUX_TEST_SRC([dirty_inode_with_flags], [
|
|
||||||
#include <linux/fs.h>
|
|
||||||
|
|
||||||
static void dirty_inode(struct inode *a, int b) { return; }
|
|
||||||
|
|
||||||
static const struct super_operations
|
|
||||||
sops __attribute__ ((unused)) = {
|
|
||||||
.dirty_inode = dirty_inode,
|
|
||||||
};
|
|
||||||
],[])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_DIRTY_INODE], [
|
|
||||||
AC_MSG_CHECKING([whether sops->dirty_inode() wants flags])
|
|
||||||
ZFS_LINUX_TEST_RESULT([dirty_inode_with_flags], [
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
AC_DEFINE(HAVE_DIRTY_INODE_WITH_FLAGS, 1,
|
|
||||||
[sops->dirty_inode() wants flags])
|
|
||||||
],[
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
])
|
|
||||||
])
|
|
|
@ -79,7 +79,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_SRC], [
|
||||||
ZFS_AC_KERNEL_SRC_FILE_DENTRY
|
ZFS_AC_KERNEL_SRC_FILE_DENTRY
|
||||||
ZFS_AC_KERNEL_SRC_FSYNC
|
ZFS_AC_KERNEL_SRC_FSYNC
|
||||||
ZFS_AC_KERNEL_SRC_AIO_FSYNC
|
ZFS_AC_KERNEL_SRC_AIO_FSYNC
|
||||||
ZFS_AC_KERNEL_SRC_DIRTY_INODE
|
|
||||||
ZFS_AC_KERNEL_SRC_SHRINKER
|
ZFS_AC_KERNEL_SRC_SHRINKER
|
||||||
ZFS_AC_KERNEL_SRC_MKDIR
|
ZFS_AC_KERNEL_SRC_MKDIR
|
||||||
ZFS_AC_KERNEL_SRC_LOOKUP_FLAGS
|
ZFS_AC_KERNEL_SRC_LOOKUP_FLAGS
|
||||||
|
@ -228,7 +227,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_RESULT], [
|
||||||
ZFS_AC_KERNEL_FILE_DENTRY
|
ZFS_AC_KERNEL_FILE_DENTRY
|
||||||
ZFS_AC_KERNEL_FSYNC
|
ZFS_AC_KERNEL_FSYNC
|
||||||
ZFS_AC_KERNEL_AIO_FSYNC
|
ZFS_AC_KERNEL_AIO_FSYNC
|
||||||
ZFS_AC_KERNEL_DIRTY_INODE
|
|
||||||
ZFS_AC_KERNEL_SHRINKER
|
ZFS_AC_KERNEL_SHRINKER
|
||||||
ZFS_AC_KERNEL_MKDIR
|
ZFS_AC_KERNEL_MKDIR
|
||||||
ZFS_AC_KERNEL_LOOKUP_FLAGS
|
ZFS_AC_KERNEL_LOOKUP_FLAGS
|
||||||
|
|
|
@ -54,7 +54,6 @@ zpl_inode_destroy(struct inode *ip)
|
||||||
* inode has changed. We use it to ensure the znode system attributes
|
* inode has changed. We use it to ensure the znode system attributes
|
||||||
* are always strictly update to date with respect to the inode.
|
* are always strictly update to date with respect to the inode.
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_DIRTY_INODE_WITH_FLAGS
|
|
||||||
static void
|
static void
|
||||||
zpl_dirty_inode(struct inode *ip, int flags)
|
zpl_dirty_inode(struct inode *ip, int flags)
|
||||||
{
|
{
|
||||||
|
@ -64,17 +63,6 @@ zpl_dirty_inode(struct inode *ip, int flags)
|
||||||
zfs_dirty_inode(ip, flags);
|
zfs_dirty_inode(ip, flags);
|
||||||
spl_fstrans_unmark(cookie);
|
spl_fstrans_unmark(cookie);
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
static void
|
|
||||||
zpl_dirty_inode(struct inode *ip)
|
|
||||||
{
|
|
||||||
fstrans_cookie_t cookie;
|
|
||||||
|
|
||||||
cookie = spl_fstrans_mark();
|
|
||||||
zfs_dirty_inode(ip, 0);
|
|
||||||
spl_fstrans_unmark(cookie);
|
|
||||||
}
|
|
||||||
#endif /* HAVE_DIRTY_INODE_WITH_FLAGS */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When ->drop_inode() is called its return value indicates if the
|
* When ->drop_inode() is called its return value indicates if the
|
||||||
|
|
Loading…
Reference in New Issue