Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
0004  */
0005 
0006 #include "autofs_i.h"
0007 
0008 static const char *autofs_get_link(struct dentry *dentry,
0009                    struct inode *inode,
0010                    struct delayed_call *done)
0011 {
0012     struct autofs_sb_info *sbi;
0013     struct autofs_info *ino;
0014 
0015     if (!dentry)
0016         return ERR_PTR(-ECHILD);
0017     sbi = autofs_sbi(dentry->d_sb);
0018     ino = autofs_dentry_ino(dentry);
0019     if (ino && !autofs_oz_mode(sbi))
0020         ino->last_used = jiffies;
0021     return d_inode(dentry)->i_private;
0022 }
0023 
0024 const struct inode_operations autofs_symlink_inode_operations = {
0025     .get_link   = autofs_get_link
0026 };