]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-encode-fh-inode.m4
Revert "Reduce dbuf_find() lock contention"
[mirror_zfs.git] / config / kernel-encode-fh-inode.m4
CommitLineData
756c3e5a
RY
1dnl #
2dnl # 3.5.0 API change
3dnl # torvalds/linux@b0b0382bb4904965a9e9fca77ad87514dfda0d1c changed the
4dnl # ->encode_fh() callback to pass the child inode and its parents inode
5dnl # rather than a dentry and a boolean saying whether we want the parent.
6dnl #
608f8749
BB
7AC_DEFUN([ZFS_AC_KERNEL_SRC_ENCODE_FH_WITH_INODE], [
8 ZFS_LINUX_TEST_SRC([export_operations_encode_fh], [
756c3e5a
RY
9 #include <linux/exportfs.h>
10 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
11 struct inode *parent) { return 0; }
12 static struct export_operations eops __attribute__ ((unused))={
13 .encode_fh = encode_fh,
14 };
608f8749
BB
15 ],[])
16])
17
18AC_DEFUN([ZFS_AC_KERNEL_ENCODE_FH_WITH_INODE], [
19 AC_MSG_CHECKING([whether eops->encode_fh() wants inode])
20 ZFS_LINUX_TEST_RESULT([export_operations_encode_fh], [
756c3e5a
RY
21 AC_MSG_RESULT(yes)
22 AC_DEFINE(HAVE_ENCODE_FH_WITH_INODE, 1,
608f8749 23 [eops->encode_fh() wants child and parent inodes])
756c3e5a
RY
24 ],[
25 AC_MSG_RESULT(no)
26 ])
27])