Linux Audio

Check our new training course

Embedded Linux training

Mar 31-Apr 8, 2025
Register
Loading...
v3.1
 1/*
 2 *  linux/fs/sysv/symlink.c
 3 *
 4 *  Handling of System V filesystem fast symlinks extensions.
 5 *  Aug 2001, Christoph Hellwig (hch@infradead.org)
 6 */
 7
 8#include "sysv.h"
 9#include <linux/namei.h>
10
11static void *sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
12{
13	nd_set_link(nd, (char *)SYSV_I(dentry->d_inode)->i_data);
14	return NULL;
15}
16
17const struct inode_operations sysv_fast_symlink_inode_operations = {
18	.readlink	= generic_readlink,
19	.follow_link	= sysv_follow_link,
20};
v3.5.6
 1/*
 2 *  linux/fs/sysv/symlink.c
 3 *
 4 *  Handling of System V filesystem fast symlinks extensions.
 5 *  Aug 2001, Christoph Hellwig (hch@infradead.org)
 6 */
 7
 8#include "sysv.h"
 9#include <linux/namei.h>
10
11static void *sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
12{
13	nd_set_link(nd, (char *)SYSV_I(dentry->d_inode)->i_data);
14	return NULL;
15}
16
17const struct inode_operations sysv_fast_symlink_inode_operations = {
18	.readlink	= generic_readlink,
19	.follow_link	= sysv_follow_link,
20};