X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fautofs4%2Fsymlink.c;fp=fs%2Fautofs4%2Fsymlink.c;h=1e8ea192be2b13612e9702c4296f57611e50ba09;hb=8dc51fe5ab9edcaebb5438d6462befdc6922b4a1;hp=f27c094a1919c2af890df6b1f2ac3a9e6a523b4c;hpb=c24930a9bbb6219f21f670c38b9473181d5f5e10;p=~andy%2Flinux diff --git a/fs/autofs4/symlink.c b/fs/autofs4/symlink.c index f27c094a191..1e8ea192be2 100644 --- a/fs/autofs4/symlink.c +++ b/fs/autofs4/symlink.c @@ -14,6 +14,10 @@ static void *autofs4_follow_link(struct dentry *dentry, struct nameidata *nd) { + 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; nd_set_link(nd, dentry->d_inode->i_private); return NULL; }