blob: d3fa0d703314bc3dafa9b5dd6c9d34a2f2c11f1d [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/fs/sysv/symlink.c
3 *
4 * Handling of System V filesystem fast symlinks extensions.
5 * Aug 2001, Christoph Hellwig (hch@infradead.org)
6 */
7
8#include "sysv.h"
9#include <linux/namei.h>
10
Al Viro008b1502005-08-20 00:17:39 +010011static void *sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
Linus Torvalds1da177e2005-04-16 15:20:36 -070012{
David Howells2b0143b2015-03-17 22:25:59 +000013 nd_set_link(nd, (char *)SYSV_I(d_inode(dentry))->i_data);
Al Viro008b1502005-08-20 00:17:39 +010014 return NULL;
Linus Torvalds1da177e2005-04-16 15:20:36 -070015}
16
Arjan van de Venc5ef1c42007-02-12 00:55:40 -080017const struct inode_operations sysv_fast_symlink_inode_operations = {
Linus Torvalds1da177e2005-04-16 15:20:36 -070018 .readlink = generic_readlink,
19 .follow_link = sysv_follow_link,
20};