From 756c3e5a9ce36461939a8dc421918e1c3a379fa6 Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Mon, 23 Jul 2012 10:55:48 -0700 Subject: Linux 3.5 compat, eops->encode_fh() takes inodes The export_operations member ->encode_fh() has been updated to take both the child and parent inodes. This interface used to take the child dentry and a bool describing if the parent is needed. NOTE: While updating this code I noticed that we do not currently cleanly handle the case where we're passed a connectable parent. This code should be audited to make sure we're doing the right thing. Signed-off-by: Richard Yao Signed-off-by: Brian Behlendorf Issue #784 --- zfs_config.h.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'zfs_config.h.in') diff --git a/zfs_config.h.in b/zfs_config.h.in index 0398fa287..7aebb8f11 100644 --- a/zfs_config.h.in +++ b/zfs_config.h.in @@ -126,6 +126,9 @@ /* d_obtain_alias() is available */ #undef HAVE_D_OBTAIN_ALIAS +/* eops->encode_fh() wants child and parent inodes */ +#undef HAVE_ENCODE_FH_WITH_INODE + /* sops->evict_inode() exists */ #undef HAVE_EVICT_INODE -- cgit v1.2.3