aboutsummaryrefslogtreecommitdiffstats
path: root/module/os
diff options
context:
space:
mode:
Diffstat (limited to 'module/os')
-rw-r--r--module/os/linux/zfs/zpl_inode.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/module/os/linux/zfs/zpl_inode.c b/module/os/linux/zfs/zpl_inode.c
index 1b7d06217..dfaaa6f1e 100644
--- a/module/os/linux/zfs/zpl_inode.c
+++ b/module/os/linux/zfs/zpl_inode.c
@@ -653,15 +653,6 @@ zpl_put_link(struct inode *unused, void *cookie)
{
kmem_free(cookie, MAXPATHLEN);
}
-#elif defined(HAVE_PUT_LINK_NAMEIDATA)
-static void
-zpl_put_link(struct dentry *dentry, struct nameidata *nd, void *ptr)
-{
- const char *link = nd_get_link(nd);
-
- if (!IS_ERR(link))
- kmem_free(link, MAXPATHLEN);
-}
#elif defined(HAVE_PUT_LINK_DELAYED)
static void
zpl_put_link(void *ptr)
@@ -858,7 +849,7 @@ const struct inode_operations zpl_symlink_inode_operations = {
#elif defined(HAVE_FOLLOW_LINK_COOKIE)
.follow_link = zpl_follow_link,
#endif
-#if defined(HAVE_PUT_LINK_COOKIE) || defined(HAVE_PUT_LINK_NAMEIDATA)
+#if defined(HAVE_PUT_LINK_COOKIE)
.put_link = zpl_put_link,
#endif
.setattr = zpl_setattr,