libzfs: Convert to fnvpair functions
[freebsd.git] / config / kernel-evict-inode.m4
1 dnl #
2 dnl # 2.6.36 API change
3 dnl # The sops->delete_inode() and sops->clear_inode() callbacks have
4 dnl # replaced by a single sops->evict_inode() callback.
5 dnl #
6 AC_DEFUN([ZFS_AC_KERNEL_SRC_EVICT_INODE], [
7         ZFS_LINUX_TEST_SRC([evict_inode], [
8                 #include <linux/fs.h>
9                 void evict_inode (struct inode * t) { return; }
10                 static struct super_operations sops __attribute__ ((unused)) = {
11                         .evict_inode = evict_inode,
12                 };
13         ],[])
14 ])
15
16 AC_DEFUN([ZFS_AC_KERNEL_EVICT_INODE], [
17         AC_MSG_CHECKING([whether sops->evict_inode() exists])
18         ZFS_LINUX_TEST_RESULT([evict_inode], [
19                 AC_MSG_RESULT(yes)
20                 AC_DEFINE(HAVE_EVICT_INODE, 1, [sops->evict_inode() exists])
21         ],[
22                 ZFS_LINUX_TEST_ERROR([evict_inode])
23         ])
24 ])