|
|
|
/*
|
|
|
|
* 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>
20 years ago
|
|
|
static void *sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
|
|
|
|
{
|
|
|
|
nd_set_link(nd, (char *)SYSV_I(dentry->d_inode)->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>
20 years ago
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct inode_operations sysv_fast_symlink_inode_operations = {
|
|
|
|
.readlink = generic_readlink,
|
|
|
|
.follow_link = sysv_follow_link,
|
|
|
|
};
|