3 dnl # This kernel retired the nameidata structure which forced the
4 dnl # restructuring of the follow_link() prototype and how it is called.
5 dnl # We check for the new interface rather than detecting the old one.
7 AC_DEFUN([ZFS_AC_KERNEL_FOLLOW_LINK], [
8 AC_MSG_CHECKING([whether iops->follow_link() passes nameidata])
9 ZFS_LINUX_TRY_COMPILE([
11 const char *follow_link(struct dentry *de, void **cookie)
13 static struct inode_operations iops __attribute__ ((unused)) = {
14 .follow_link = follow_link,
21 AC_DEFINE(HAVE_FOLLOW_LINK_NAMEIDATA, 1,
22 [iops->follow_link() nameidata])