summaryrefslogtreecommitdiffstats
path: root/config/kernel-file-inode.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/kernel-file-inode.m4')
-rw-r--r--config/kernel-file-inode.m412
1 files changed, 8 insertions, 4 deletions
diff --git a/config/kernel-file-inode.m4 b/config/kernel-file-inode.m4
index 300188fa3..00a362165 100644
--- a/config/kernel-file-inode.m4
+++ b/config/kernel-file-inode.m4
@@ -3,14 +3,18 @@ dnl # 3.19 API change
dnl # struct access f->f_dentry->d_inode was replaced by accessor function
dnl # file_inode(f)
dnl #
-AC_DEFUN([ZFS_AC_KERNEL_FILE_INODE], [
- AC_MSG_CHECKING([whether file_inode() is available])
- ZFS_LINUX_TRY_COMPILE([
+AC_DEFUN([ZFS_AC_KERNEL_SRC_FILE_INODE], [
+ ZFS_LINUX_TEST_SRC([file_inode], [
#include <linux/fs.h>
],[
struct file *f = NULL;
file_inode(f);
- ],[
+ ])
+])
+
+AC_DEFUN([ZFS_AC_KERNEL_FILE_INODE], [
+ AC_MSG_CHECKING([whether file_inode() is available])
+ ZFS_LINUX_TEST_RESULT([file_inode], [
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_FILE_INODE, 1, [file_inode() is available])
],[