[PATCH] DVB: Documentation and Kconfig updazes
[linux-2.6/history.git] / fs / sysv / symlink.c
blob97ea7613782c9e3ee90dd6957d4f44dd762fc361
1 /*
2 * linux/fs/sysv/symlink.c
4 * Handling of System V filesystem fast symlinks extensions.
5 * Aug 2001, Christoph Hellwig (hch@infradead.org)
6 */
8 #include "sysv.h"
10 static int sysv_readlink(struct dentry *dentry, char *buffer, int buflen)
12 char *s = (char *)SYSV_I(dentry->d_inode)->i_data;
13 return vfs_readlink(dentry, buffer, buflen, s);
16 static int sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
18 char *s = (char *)SYSV_I(dentry->d_inode)->i_data;
19 return vfs_follow_link(nd, s);
22 struct inode_operations sysv_fast_symlink_inode_operations = {
23 .readlink = sysv_readlink,
24 .follow_link = sysv_follow_link,