config: remove HAVE_FILE_DENTRY
Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com>
This commit is contained in:
parent
c96dd5d732
commit
21d05fc702
|
@ -1,24 +0,0 @@
|
||||||
dnl #
|
|
||||||
dnl # 4.1 API change
|
|
||||||
dnl # struct access file->f_path.dentry was replaced by accessor function
|
|
||||||
dnl # since fix torvalds/linux@4bacc9c9234c ("overlayfs: Make f_path always
|
|
||||||
dnl # point to the overlay and f_inode to the underlay").
|
|
||||||
dnl #
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_SRC_FILE_DENTRY], [
|
|
||||||
ZFS_LINUX_TEST_SRC([file_dentry], [
|
|
||||||
#include <linux/fs.h>
|
|
||||||
],[
|
|
||||||
struct file *f = NULL;
|
|
||||||
file_dentry(f);
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_FILE_DENTRY], [
|
|
||||||
AC_MSG_CHECKING([whether file_dentry() is available])
|
|
||||||
ZFS_LINUX_TEST_RESULT([file_dentry], [
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
AC_DEFINE(HAVE_FILE_DENTRY, 1, [file_dentry() is available])
|
|
||||||
],[
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
])
|
|
||||||
])
|
|
|
@ -75,7 +75,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_SRC], [
|
||||||
ZFS_AC_KERNEL_SRC_INODE_SET_IVERSION
|
ZFS_AC_KERNEL_SRC_INODE_SET_IVERSION
|
||||||
ZFS_AC_KERNEL_SRC_SHOW_OPTIONS
|
ZFS_AC_KERNEL_SRC_SHOW_OPTIONS
|
||||||
ZFS_AC_KERNEL_SRC_FILE_INODE
|
ZFS_AC_KERNEL_SRC_FILE_INODE
|
||||||
ZFS_AC_KERNEL_SRC_FILE_DENTRY
|
|
||||||
ZFS_AC_KERNEL_SRC_FSYNC
|
ZFS_AC_KERNEL_SRC_FSYNC
|
||||||
ZFS_AC_KERNEL_SRC_AIO_FSYNC
|
ZFS_AC_KERNEL_SRC_AIO_FSYNC
|
||||||
ZFS_AC_KERNEL_SRC_SHRINKER
|
ZFS_AC_KERNEL_SRC_SHRINKER
|
||||||
|
@ -221,7 +220,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_RESULT], [
|
||||||
ZFS_AC_KERNEL_INODE_SET_IVERSION
|
ZFS_AC_KERNEL_INODE_SET_IVERSION
|
||||||
ZFS_AC_KERNEL_SHOW_OPTIONS
|
ZFS_AC_KERNEL_SHOW_OPTIONS
|
||||||
ZFS_AC_KERNEL_FILE_INODE
|
ZFS_AC_KERNEL_FILE_INODE
|
||||||
ZFS_AC_KERNEL_FILE_DENTRY
|
|
||||||
ZFS_AC_KERNEL_FSYNC
|
ZFS_AC_KERNEL_FSYNC
|
||||||
ZFS_AC_KERNEL_AIO_FSYNC
|
ZFS_AC_KERNEL_AIO_FSYNC
|
||||||
ZFS_AC_KERNEL_SHRINKER
|
ZFS_AC_KERNEL_SHRINKER
|
||||||
|
|
|
@ -272,18 +272,6 @@ static inline struct inode *file_inode(const struct file *f)
|
||||||
}
|
}
|
||||||
#endif /* HAVE_FILE_INODE */
|
#endif /* HAVE_FILE_INODE */
|
||||||
|
|
||||||
/*
|
|
||||||
* 4.1 API change
|
|
||||||
* struct access file->f_path.dentry was replaced by accessor function
|
|
||||||
* file_dentry(f)
|
|
||||||
*/
|
|
||||||
#ifndef HAVE_FILE_DENTRY
|
|
||||||
static inline struct dentry *file_dentry(const struct file *f)
|
|
||||||
{
|
|
||||||
return (f->f_path.dentry);
|
|
||||||
}
|
|
||||||
#endif /* HAVE_FILE_DENTRY */
|
|
||||||
|
|
||||||
static inline uid_t zfs_uid_read_impl(struct inode *ip)
|
static inline uid_t zfs_uid_read_impl(struct inode *ip)
|
||||||
{
|
{
|
||||||
return (from_kuid(kcred->user_ns, ip->i_uid));
|
return (from_kuid(kcred->user_ns, ip->i_uid));
|
||||||
|
|
Loading…
Reference in New Issue