2 dnl # Supported symlink APIs
4 AC_DEFUN([ZFS_AC_KERNEL_SRC_PUT_LINK], [
5 ZFS_LINUX_TEST_SRC([put_link_cookie], [
7 static void put_link(struct inode *ip, void *cookie)
9 static struct inode_operations
10 iops __attribute__ ((unused)) = {
15 ZFS_LINUX_TEST_SRC([put_link_nameidata], [
17 static void put_link(struct dentry *de, struct
18 nameidata *nd, void *ptr) { return; }
19 static struct inode_operations
20 iops __attribute__ ((unused)) = {
26 AC_DEFUN([ZFS_AC_KERNEL_PUT_LINK], [
29 dnl # get_link() uses delayed done, there is no put_link() interface.
30 dnl # This check initially uses the inode_operations_get_link result
32 ZFS_LINUX_TEST_RESULT([inode_operations_get_link], [
33 AC_DEFINE(HAVE_PUT_LINK_DELAYED, 1, [iops->put_link() delayed])
37 dnl # This kernel retired the nameidata structure.
39 AC_MSG_CHECKING([whether iops->put_link() passes cookie])
40 ZFS_LINUX_TEST_RESULT([put_link_cookie], [
42 AC_DEFINE(HAVE_PUT_LINK_COOKIE, 1,
43 [iops->put_link() cookie])
51 [whether iops->put_link() passes nameidata])
52 ZFS_LINUX_TEST_RESULT([put_link_nameidata], [
54 AC_DEFINE(HAVE_PUT_LINK_NAMEIDATA, 1,
55 [iops->put_link() nameidata])
57 ZFS_LINUX_TEST_ERROR([put_link])