mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
config: remove HAVE_GENERIC_READLINK
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
parent
f6661d1153
commit
df9795f2d7
@ -1,25 +0,0 @@
|
|||||||
dnl #
|
|
||||||
dnl # 4.10 API
|
|
||||||
dnl #
|
|
||||||
dnl # NULL inode_operations.readlink implies generic_readlink(), which
|
|
||||||
dnl # has been made static.
|
|
||||||
dnl #
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_SRC_GENERIC_READLINK_GLOBAL], [
|
|
||||||
ZFS_LINUX_TEST_SRC([generic_readlink_global], [
|
|
||||||
#include <linux/fs.h>
|
|
||||||
],[
|
|
||||||
int i __attribute__ ((unused));
|
|
||||||
i = generic_readlink(NULL, NULL, 0);
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_GENERIC_READLINK_GLOBAL], [
|
|
||||||
AC_MSG_CHECKING([whether generic_readlink is global])
|
|
||||||
ZFS_LINUX_TEST_RESULT([generic_readlink_global], [
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
AC_DEFINE(HAVE_GENERIC_READLINK, 1,
|
|
||||||
[generic_readlink is global])
|
|
||||||
],[
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
])
|
|
||||||
])
|
|
@ -53,7 +53,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_SRC], [
|
|||||||
ZFS_AC_KERNEL_SRC_GENHD_FLAGS
|
ZFS_AC_KERNEL_SRC_GENHD_FLAGS
|
||||||
ZFS_AC_KERNEL_SRC_REVALIDATE_DISK
|
ZFS_AC_KERNEL_SRC_REVALIDATE_DISK
|
||||||
ZFS_AC_KERNEL_SRC_GET_DISK_RO
|
ZFS_AC_KERNEL_SRC_GET_DISK_RO
|
||||||
ZFS_AC_KERNEL_SRC_GENERIC_READLINK_GLOBAL
|
|
||||||
ZFS_AC_KERNEL_SRC_DISCARD_GRANULARITY
|
ZFS_AC_KERNEL_SRC_DISCARD_GRANULARITY
|
||||||
ZFS_AC_KERNEL_SRC_INODE_OWNER_OR_CAPABLE
|
ZFS_AC_KERNEL_SRC_INODE_OWNER_OR_CAPABLE
|
||||||
ZFS_AC_KERNEL_SRC_XATTR
|
ZFS_AC_KERNEL_SRC_XATTR
|
||||||
@ -164,7 +163,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_RESULT], [
|
|||||||
ZFS_AC_KERNEL_GENHD_FLAGS
|
ZFS_AC_KERNEL_GENHD_FLAGS
|
||||||
ZFS_AC_KERNEL_REVALIDATE_DISK
|
ZFS_AC_KERNEL_REVALIDATE_DISK
|
||||||
ZFS_AC_KERNEL_GET_DISK_RO
|
ZFS_AC_KERNEL_GET_DISK_RO
|
||||||
ZFS_AC_KERNEL_GENERIC_READLINK_GLOBAL
|
|
||||||
ZFS_AC_KERNEL_DISCARD_GRANULARITY
|
ZFS_AC_KERNEL_DISCARD_GRANULARITY
|
||||||
ZFS_AC_KERNEL_INODE_OWNER_OR_CAPABLE
|
ZFS_AC_KERNEL_INODE_OWNER_OR_CAPABLE
|
||||||
ZFS_AC_KERNEL_XATTR
|
ZFS_AC_KERNEL_XATTR
|
||||||
|
@ -776,9 +776,6 @@ const struct inode_operations zpl_dir_inode_operations = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const struct inode_operations zpl_symlink_inode_operations = {
|
const struct inode_operations zpl_symlink_inode_operations = {
|
||||||
#ifdef HAVE_GENERIC_READLINK
|
|
||||||
.readlink = generic_readlink,
|
|
||||||
#endif
|
|
||||||
.get_link = zpl_get_link,
|
.get_link = zpl_get_link,
|
||||||
.setattr = zpl_setattr,
|
.setattr = zpl_setattr,
|
||||||
.getattr = zpl_getattr,
|
.getattr = zpl_getattr,
|
||||||
|
Loading…
Reference in New Issue
Block a user