diff options
Diffstat (limited to 'kernel/fs/sysv/symlink.c')
-rw-r--r-- | kernel/fs/sysv/symlink.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/kernel/fs/sysv/symlink.c b/kernel/fs/sysv/symlink.c new file mode 100644 index 000000000..d3fa0d703 --- /dev/null +++ b/kernel/fs/sysv/symlink.c @@ -0,0 +1,20 @@ +/* + * 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> + +static void *sysv_follow_link(struct dentry *dentry, struct nameidata *nd) +{ + nd_set_link(nd, (char *)SYSV_I(d_inode(dentry))->i_data); + return NULL; +} + +const struct inode_operations sysv_fast_symlink_inode_operations = { + .readlink = generic_readlink, + .follow_link = sysv_follow_link, +}; |