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