2 dnl # Supported symlink APIs
4 AC_DEFUN([ZFS_AC_KERNEL_PUT_LINK], [
7 dnl # get_link() uses delayed done, there is no put_link() interface.
9 ZFS_LINUX_TRY_COMPILE([
10 #if !defined(HAVE_GET_LINK_DELAYED)
11 #error "Expecting get_link() delayed done"
15 AC_DEFINE(HAVE_PUT_LINK_DELAYED, 1, [iops->put_link() delayed])
19 dnl # This kernel retired the nameidata structure.
21 AC_MSG_CHECKING([whether iops->put_link() passes cookie])
22 ZFS_LINUX_TRY_COMPILE([
24 void put_link(struct inode *ip, void *cookie)
26 static struct inode_operations
27 iops __attribute__ ((unused)) = {
33 AC_DEFINE(HAVE_PUT_LINK_COOKIE, 1,
34 [iops->put_link() cookie])
41 [whether iops->put_link() passes nameidata])
42 ZFS_LINUX_TRY_COMPILE([
44 void put_link(struct dentry *de, struct
45 nameidata *nd, void *ptr) { return; }
46 static struct inode_operations
47 iops __attribute__ ((unused)) = {
53 AC_DEFINE(HAVE_PUT_LINK_NAMEIDATA, 1,
54 [iops->put_link() nameidata])
56 AC_MSG_ERROR(no; please file a bug report)