mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
config: remove HAVE_ENCODE_FH_WITH_INODE
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
8e002ee26e
commit
f70ffacdfc
@ -1,27 +0,0 @@
|
|||||||
dnl #
|
|
||||||
dnl # 3.5.0 API change
|
|
||||||
dnl # torvalds/linux@b0b0382bb4904965a9e9fca77ad87514dfda0d1c changed the
|
|
||||||
dnl # ->encode_fh() callback to pass the child inode and its parents inode
|
|
||||||
dnl # rather than a dentry and a boolean saying whether we want the parent.
|
|
||||||
dnl #
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_SRC_ENCODE_FH_WITH_INODE], [
|
|
||||||
ZFS_LINUX_TEST_SRC([export_operations_encode_fh], [
|
|
||||||
#include <linux/exportfs.h>
|
|
||||||
static int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
|
|
||||||
struct inode *parent) { return 0; }
|
|
||||||
static struct export_operations eops __attribute__ ((unused))={
|
|
||||||
.encode_fh = encode_fh,
|
|
||||||
};
|
|
||||||
],[])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_ENCODE_FH_WITH_INODE], [
|
|
||||||
AC_MSG_CHECKING([whether eops->encode_fh() wants inode])
|
|
||||||
ZFS_LINUX_TEST_RESULT([export_operations_encode_fh], [
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
AC_DEFINE(HAVE_ENCODE_FH_WITH_INODE, 1,
|
|
||||||
[eops->encode_fh() wants child and parent inodes])
|
|
||||||
],[
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
])
|
|
||||||
])
|
|
@ -89,7 +89,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_SRC], [
|
|||||||
ZFS_AC_KERNEL_SRC_PUT_LINK
|
ZFS_AC_KERNEL_SRC_PUT_LINK
|
||||||
ZFS_AC_KERNEL_SRC_TMPFILE
|
ZFS_AC_KERNEL_SRC_TMPFILE
|
||||||
ZFS_AC_KERNEL_SRC_AUTOMOUNT
|
ZFS_AC_KERNEL_SRC_AUTOMOUNT
|
||||||
ZFS_AC_KERNEL_SRC_ENCODE_FH_WITH_INODE
|
|
||||||
ZFS_AC_KERNEL_SRC_COMMIT_METADATA
|
ZFS_AC_KERNEL_SRC_COMMIT_METADATA
|
||||||
ZFS_AC_KERNEL_SRC_SETATTR_PREPARE
|
ZFS_AC_KERNEL_SRC_SETATTR_PREPARE
|
||||||
ZFS_AC_KERNEL_SRC_INSERT_INODE_LOCKED
|
ZFS_AC_KERNEL_SRC_INSERT_INODE_LOCKED
|
||||||
@ -239,7 +238,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_RESULT], [
|
|||||||
ZFS_AC_KERNEL_PUT_LINK
|
ZFS_AC_KERNEL_PUT_LINK
|
||||||
ZFS_AC_KERNEL_TMPFILE
|
ZFS_AC_KERNEL_TMPFILE
|
||||||
ZFS_AC_KERNEL_AUTOMOUNT
|
ZFS_AC_KERNEL_AUTOMOUNT
|
||||||
ZFS_AC_KERNEL_ENCODE_FH_WITH_INODE
|
|
||||||
ZFS_AC_KERNEL_COMMIT_METADATA
|
ZFS_AC_KERNEL_COMMIT_METADATA
|
||||||
ZFS_AC_KERNEL_SETATTR_PREPARE
|
ZFS_AC_KERNEL_SETATTR_PREPARE
|
||||||
ZFS_AC_KERNEL_INSERT_INODE_LOCKED
|
ZFS_AC_KERNEL_INSERT_INODE_LOCKED
|
||||||
|
@ -31,15 +31,8 @@
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
#ifdef HAVE_ENCODE_FH_WITH_INODE
|
|
||||||
zpl_encode_fh(struct inode *ip, __u32 *fh, int *max_len, struct inode *parent)
|
zpl_encode_fh(struct inode *ip, __u32 *fh, int *max_len, struct inode *parent)
|
||||||
{
|
{
|
||||||
#else
|
|
||||||
zpl_encode_fh(struct dentry *dentry, __u32 *fh, int *max_len, int connectable)
|
|
||||||
{
|
|
||||||
/* CSTYLED */
|
|
||||||
struct inode *ip = dentry->d_inode;
|
|
||||||
#endif /* HAVE_ENCODE_FH_WITH_INODE */
|
|
||||||
fstrans_cookie_t cookie;
|
fstrans_cookie_t cookie;
|
||||||
ushort_t empty_fid = 0;
|
ushort_t empty_fid = 0;
|
||||||
fid_t *fid;
|
fid_t *fid;
|
||||||
|
Loading…
Reference in New Issue
Block a user