OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [fs/] [sysv/] [symlink.c] - Rev 1275

Go to most recent revision | Compare with Previous | Blame | View Log

/*
 *  linux/fs/sysv/symlink.c
 *
 *  Handling of System V filesystem fast symlinks extensions.
 *  Aug 2001, Christoph Hellwig (hch@infradead.org)
 */
 
#include <linux/fs.h>
 
static int sysv_readlink(struct dentry *dentry, char *buffer, int buflen)
{
	char *s = (char *)dentry->d_inode->u.sysv_i.i_data;
	return vfs_readlink(dentry, buffer, buflen, s);
}
 
static int sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
{
	char *s = (char *)dentry->d_inode->u.sysv_i.i_data;
	return vfs_follow_link(nd, s);
}
 
struct inode_operations sysv_fast_symlink_inode_operations = {
	readlink:	sysv_readlink,
	follow_link:	sysv_follow_link,
};
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.