2005-04-16 15:20:36 -07:00
|
|
|
/*
|
|
|
|
|
* linux/fs/sysv/symlink.c
|
|
|
|
|
*
|
|
|
|
|
* Handling of System V filesystem fast symlinks extensions.
|
|
|
|
|
* Aug 2001, Christoph Hellwig (hch@infradead.org)
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "sysv.h"
|
|
|
|
|
#include <linux/namei.h>
|
|
|
|
|
|
2005-08-20 00:17:39 +01:00
|
|
|
static void *sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
|
2005-04-16 15:20:36 -07:00
|
|
|
{
|
|
|
|
|
nd_set_link(nd, (char *)SYSV_I(dentry->d_inode)->i_data);
|
2005-08-20 00:17:39 +01:00
|
|
|
return NULL;
|
2005-04-16 15:20:36 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct inode_operations sysv_fast_symlink_inode_operations = {
|
|
|
|
|
.readlink = generic_readlink,
|
|
|
|
|
.follow_link = sysv_follow_link,
|
|
|
|
|
};
|