6 #define DEBUG_SUBSYSTEM S_SNAP
8 #include <linux/kmod.h>
9 #include <linux/init.h>
11 #include <linux/slab.h>
12 #include <linux/string.h>
14 #include "smfs_internal.h"
16 static int smfs_readlink(struct dentry * dentry, char * buffer, int buflen)
18 struct inode *cache_inode = I2CI(dentry->d_inode);
21 if (cache_inode->i_op && cache_inode->i_op->readlink)
22 rc = cache_inode->i_op->readlink(dentry, buffer, buflen);
27 static int smfs_follow_link(struct dentry *dentry, struct nameidata *nd)
29 struct inode *cache_inode = I2CI(dentry->d_inode);
32 if (cache_inode->i_op && cache_inode->i_op->follow_link)
33 rc = cache_inode->i_op->follow_link(dentry, nd);
38 struct inode_operations smfs_sym_iops = {
39 readlink: smfs_readlink,
40 follow_link: smfs_follow_link,
43 struct file_operations smfs_sym_fops = {