--- zzzz-none-000/linux-3.10.107/fs/autofs4/symlink.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/fs/autofs4/symlink.c 2021-02-04 17:41:59.000000000 +0000 @@ -12,10 +12,13 @@ #include "autofs_i.h" -static void *autofs4_follow_link(struct dentry *dentry, struct nameidata *nd) +static const char *autofs4_follow_link(struct dentry *dentry, void **cookie) { - nd_set_link(nd, dentry->d_inode->i_private); - return NULL; + struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); + struct autofs_info *ino = autofs4_dentry_ino(dentry); + if (ino && !autofs4_oz_mode(sbi)) + ino->last_used = jiffies; + return d_inode(dentry)->i_private; } const struct inode_operations autofs4_symlink_inode_operations = {