The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/openzfs/config/kernel-dirty-inode.m4

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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_SRC_DIRTY_INODE], [
    8         ZFS_LINUX_TEST_SRC([dirty_inode_with_flags], [
    9                 #include <linux/fs.h>
   10 
   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                 };
   17         ],[])
   18 ])
   19 
   20 AC_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], [
   23                 AC_MSG_RESULT([yes])
   24                 AC_DEFINE(HAVE_DIRTY_INODE_WITH_FLAGS, 1,
   25                     [sops->dirty_inode() wants flags])
   26         ],[
   27                 AC_MSG_RESULT([no])
   28         ])
   29 ])

Cache object: 70227c682e5875cc048febb4fbca15c5


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.