mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 16:07:57 +07:00
d691005856
Based on 1 normalized pattern(s): this file is part of the linux kernel and is made available under the terms of the gnu general public license version 2 or at your option any later version incorporated herein by reference extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 18 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Armijn Hemel <armijn@tjaldur.nl> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190520075211.321157221@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
27 lines
629 B
C
27 lines
629 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
|
|
*/
|
|
|
|
#include "autofs_i.h"
|
|
|
|
static const char *autofs_get_link(struct dentry *dentry,
|
|
struct inode *inode,
|
|
struct delayed_call *done)
|
|
{
|
|
struct autofs_sb_info *sbi;
|
|
struct autofs_info *ino;
|
|
|
|
if (!dentry)
|
|
return ERR_PTR(-ECHILD);
|
|
sbi = autofs_sbi(dentry->d_sb);
|
|
ino = autofs_dentry_ino(dentry);
|
|
if (ino && !autofs_oz_mode(sbi))
|
|
ino->last_used = jiffies;
|
|
return d_inode(dentry)->i_private;
|
|
}
|
|
|
|
const struct inode_operations autofs_symlink_inode_operations = {
|
|
.get_link = autofs_get_link
|
|
};
|