xref: /freebsd/sys/contrib/openzfs/config/kernel-free-inode.m4 (revision df58e8b1506f241670be86a560fb6e8432043aee)
1dnl #
2dnl # Linux 5.2 API change
3dnl #
4AC_DEFUN([ZFS_AC_KERNEL_SRC_SOPS_FREE_INODE], [
5	ZFS_LINUX_TEST_SRC([super_operations_free_inode], [
6		#include <linux/fs.h>
7
8		static void free_inode(struct inode *) { }
9
10		static struct super_operations sops __attribute__ ((unused)) = {
11			.free_inode = free_inode,
12		};
13	],[])
14])
15
16AC_DEFUN([ZFS_AC_KERNEL_SOPS_FREE_INODE], [
17	AC_MSG_CHECKING([whether sops->free_inode() exists])
18	ZFS_LINUX_TEST_RESULT([super_operations_free_inode], [
19		AC_MSG_RESULT(yes)
20		AC_DEFINE(HAVE_SOPS_FREE_INODE, 1, [sops->free_inode() exists])
21	],[
22		AC_MSG_RESULT(no)
23	])
24])
25