Merge tag 'irqchip-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm...
[linux/fpc-iii.git] / fs / autofs4 / symlink.c
blob99aab00dc21763505adbe5a1d8d992a83e131aaf
1 /*
2 * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
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 */
9 #include "autofs_i.h"
11 static const char *autofs4_get_link(struct dentry *dentry,
12 struct inode *inode,
13 struct delayed_call *done)
15 struct autofs_sb_info *sbi;
16 struct autofs_info *ino;
18 if (!dentry)
19 return ERR_PTR(-ECHILD);
20 sbi = autofs4_sbi(dentry->d_sb);
21 ino = autofs4_dentry_ino(dentry);
22 if (ino && !autofs4_oz_mode(sbi))
23 ino->last_used = jiffies;
24 return d_inode(dentry)->i_private;
27 const struct inode_operations autofs4_symlink_inode_operations = {
28 .readlink = generic_readlink,
29 .get_link = autofs4_get_link