config: remove HAVE_DENTRY_D_U_ALIASES
Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com>
This commit is contained in:
parent
3eb16e1922
commit
f796dcb26e
|
@ -1,30 +0,0 @@
|
||||||
dnl #
|
|
||||||
dnl # 3.18 API change
|
|
||||||
dnl # Dentry aliases are in d_u struct dentry member
|
|
||||||
dnl #
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_SRC_DENTRY_ALIAS_D_U], [
|
|
||||||
ZFS_LINUX_TEST_SRC([dentry_alias_d_u], [
|
|
||||||
#include <linux/fs.h>
|
|
||||||
#include <linux/dcache.h>
|
|
||||||
#include <linux/list.h>
|
|
||||||
], [
|
|
||||||
struct inode *inode __attribute__ ((unused)) = NULL;
|
|
||||||
struct dentry *dentry __attribute__ ((unused)) = NULL;
|
|
||||||
hlist_for_each_entry(dentry, &inode->i_dentry,
|
|
||||||
d_u.d_alias) {
|
|
||||||
d_drop(dentry);
|
|
||||||
}
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_DENTRY_ALIAS_D_U], [
|
|
||||||
AC_MSG_CHECKING([whether dentry aliases are in d_u member])
|
|
||||||
ZFS_LINUX_TEST_RESULT([dentry_alias_d_u], [
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
AC_DEFINE(HAVE_DENTRY_D_U_ALIASES, 1,
|
|
||||||
[dentry aliases are in d_u member])
|
|
||||||
],[
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
|
@ -86,7 +86,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_SRC], [
|
||||||
ZFS_AC_KERNEL_SRC_ENCODE_FH_WITH_INODE
|
ZFS_AC_KERNEL_SRC_ENCODE_FH_WITH_INODE
|
||||||
ZFS_AC_KERNEL_SRC_SETATTR_PREPARE
|
ZFS_AC_KERNEL_SRC_SETATTR_PREPARE
|
||||||
ZFS_AC_KERNEL_SRC_DENTRY
|
ZFS_AC_KERNEL_SRC_DENTRY
|
||||||
ZFS_AC_KERNEL_SRC_DENTRY_ALIAS_D_U
|
|
||||||
ZFS_AC_KERNEL_SRC_BDI
|
ZFS_AC_KERNEL_SRC_BDI
|
||||||
ZFS_AC_KERNEL_SRC_LSEEK_EXECUTE
|
ZFS_AC_KERNEL_SRC_LSEEK_EXECUTE
|
||||||
ZFS_AC_KERNEL_SRC_VFS_FILEMAP_DIRTY_FOLIO
|
ZFS_AC_KERNEL_SRC_VFS_FILEMAP_DIRTY_FOLIO
|
||||||
|
@ -214,7 +213,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_RESULT], [
|
||||||
ZFS_AC_KERNEL_ENCODE_FH_WITH_INODE
|
ZFS_AC_KERNEL_ENCODE_FH_WITH_INODE
|
||||||
ZFS_AC_KERNEL_SETATTR_PREPARE
|
ZFS_AC_KERNEL_SETATTR_PREPARE
|
||||||
ZFS_AC_KERNEL_DENTRY
|
ZFS_AC_KERNEL_DENTRY
|
||||||
ZFS_AC_KERNEL_DENTRY_ALIAS_D_U
|
|
||||||
ZFS_AC_KERNEL_BDI
|
ZFS_AC_KERNEL_BDI
|
||||||
ZFS_AC_KERNEL_LSEEK_EXECUTE
|
ZFS_AC_KERNEL_LSEEK_EXECUTE
|
||||||
ZFS_AC_KERNEL_VFS_FILEMAP_DIRTY_FOLIO
|
ZFS_AC_KERNEL_VFS_FILEMAP_DIRTY_FOLIO
|
||||||
|
|
|
@ -35,9 +35,7 @@
|
||||||
#define d_make_root(inode) d_alloc_root(inode)
|
#define d_make_root(inode) d_alloc_root(inode)
|
||||||
#endif /* HAVE_D_MAKE_ROOT */
|
#endif /* HAVE_D_MAKE_ROOT */
|
||||||
|
|
||||||
#ifdef HAVE_DENTRY_D_U_ALIASES
|
|
||||||
#define d_alias d_u.d_alias
|
#define d_alias d_u.d_alias
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Starting from Linux 5.13, flush_dcache_page() becomes an inline function
|
* Starting from Linux 5.13, flush_dcache_page() becomes an inline function
|
||||||
|
|
Loading…
Reference in New Issue