aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/linux
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-08-04 13:58:24 +1000
committerBrian Behlendorf <[email protected]>2024-09-18 11:23:50 -0700
commitc9e8d0e0b53b0b0e5c5d51dfe2e5d47ee7ee5336 (patch)
treea2948961c3b4a8997e2aae19b4cabc3817eca1b1 /module/os/linux
parent2bba4202454ebeff694a0cca88ecda0e94ad40ba (diff)
config: remove HAVE_PUT_LINK_NAMEIDATA
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Tino Reichardt <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16479
Diffstat (limited to 'module/os/linux')
-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,