2005-04-17 05: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>
|
|
|
|
|
[PATCH] Fix up symlink function pointers
This fixes up the symlink functions for the calling convention change:
* afs, autofs4, befs, devfs, freevxfs, jffs2, jfs, ncpfs, procfs,
smbfs, sysvfs, ufs, xfs - prototype change for ->follow_link()
* befs, smbfs, xfs - same for ->put_link()
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-08-20 06:17:39 +07:00
|
|
|
static void *sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
2015-03-18 05:25:59 +07:00
|
|
|
nd_set_link(nd, (char *)SYSV_I(d_inode(dentry))->i_data);
|
[PATCH] Fix up symlink function pointers
This fixes up the symlink functions for the calling convention change:
* afs, autofs4, befs, devfs, freevxfs, jffs2, jfs, ncpfs, procfs,
smbfs, sysvfs, ufs, xfs - prototype change for ->follow_link()
* befs, smbfs, xfs - same for ->put_link()
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-08-20 06:17:39 +07:00
|
|
|
return NULL;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
2007-02-12 15:55:40 +07:00
|
|
|
const struct inode_operations sysv_fast_symlink_inode_operations = {
|
2005-04-17 05:20:36 +07:00
|
|
|
.readlink = generic_readlink,
|
|
|
|
.follow_link = sysv_follow_link,
|
|
|
|
};
|