Commit | Line | Data |
---|---|---|
e9a7c2f1 IK |
1 | /* |
2 | * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved | |
1da177e4 LT |
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. | |
e9a7c2f1 | 7 | */ |
1da177e4 LT |
8 | |
9 | #include "autofs_i.h" | |
10 | ||
6b255391 | 11 | static const char *autofs4_get_link(struct dentry *dentry, |
fceef393 AV |
12 | struct inode *inode, |
13 | struct delayed_call *done) | |
1da177e4 | 14 | { |
6b255391 AV |
15 | struct autofs_sb_info *sbi; |
16 | struct autofs_info *ino; | |
e9a7c2f1 | 17 | |
6b255391 AV |
18 | if (!dentry) |
19 | return ERR_PTR(-ECHILD); | |
20 | sbi = autofs4_sbi(dentry->d_sb); | |
21 | ino = autofs4_dentry_ino(dentry); | |
8dc51fe5 IK |
22 | if (ino && !autofs4_oz_mode(sbi)) |
23 | ino->last_used = jiffies; | |
680baacb | 24 | return d_inode(dentry)->i_private; |
1da177e4 LT |
25 | } |
26 | ||
754661f1 | 27 | const struct inode_operations autofs4_symlink_inode_operations = { |
6b255391 | 28 | .get_link = autofs4_get_link |
1da177e4 | 29 | }; |