blob: aad3902c0cc1f32947629d1380c926f77f60ada8 [file] [log] [blame]
Ian Kentebc921c2018-06-07 17:11:13 -07001/*
2 * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
3 *
4 * This file is part of the Linux kernel and is made available under
5 * the terms of the GNU General Public License, version 2, or at your
6 * option, any later version, incorporated herein by reference.
7 */
8
9#include "autofs_i.h"
10
11static const char *autofs_get_link(struct dentry *dentry,
12 struct inode *inode,
13 struct delayed_call *done)
14{
15 struct autofs_sb_info *sbi;
16 struct autofs_info *ino;
17
18 if (!dentry)
19 return ERR_PTR(-ECHILD);
20 sbi = autofs_sbi(dentry->d_sb);
21 ino = autofs_dentry_ino(dentry);
22 if (ino && !autofs_oz_mode(sbi))
23 ino->last_used = jiffies;
24 return d_inode(dentry)->i_private;
25}
26
27const struct inode_operations autofs_symlink_inode_operations = {
28 .get_link = autofs_get_link
29};