+++ /dev/null
-dnl #
-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_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])
- ],[
- AC_MSG_RESULT(no)
- ])
-])
ZFS_AC_KERNEL_SRC_INODE_SET_FLAGS
ZFS_AC_KERNEL_SRC_INODE_SET_IVERSION
ZFS_AC_KERNEL_SRC_SHOW_OPTIONS
- ZFS_AC_KERNEL_SRC_FILE_INODE
ZFS_AC_KERNEL_SRC_FILEMAP
ZFS_AC_KERNEL_SRC_FSYNC
ZFS_AC_KERNEL_SRC_AIO_FSYNC
ZFS_AC_KERNEL_INODE_SET_FLAGS
ZFS_AC_KERNEL_INODE_SET_IVERSION
ZFS_AC_KERNEL_SHOW_OPTIONS
- ZFS_AC_KERNEL_FILE_INODE
ZFS_AC_KERNEL_FILEMAP
ZFS_AC_KERNEL_FSYNC
ZFS_AC_KERNEL_AIO_FSYNC
#endif /* CONFIG_FS_POSIX_ACL */
-/*
- * 3.19 API change
- * struct access f->f_dentry->d_inode was replaced by accessor function
- * file_inode(f)
- */
-#ifndef HAVE_FILE_INODE
-static inline struct inode *file_inode(const struct file *f)
-{
- return (f->f_dentry->d_inode);
-}
-#endif /* HAVE_FILE_INODE */
-
static inline uid_t zfs_uid_read_impl(struct inode *ip)
{
return (from_kuid(kcred->user_ns, ip->i_uid));