X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=fs%2Fjfs%2Fsymlink.c;h=ef4c07ee92b2a4461324ca4754dfa7389ebfa894;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=6e028d912e62e8dfd2eba278995c68727c393e61;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/fs/jfs/symlink.c b/fs/jfs/symlink.c index 6e028d912..ef4c07ee9 100644 --- a/fs/jfs/symlink.c +++ b/fs/jfs/symlink.c @@ -17,23 +17,19 @@ */ #include +#include #include "jfs_incore.h" #include "jfs_xattr.h" static int jfs_follow_link(struct dentry *dentry, struct nameidata *nd) { char *s = JFS_IP(dentry->d_inode)->i_inline; - return vfs_follow_link(nd, s); -} - -static int jfs_readlink(struct dentry *dentry, char __user *buffer, int buflen) -{ - char *s = JFS_IP(dentry->d_inode)->i_inline; - return vfs_readlink(dentry, buffer, buflen, s); + nd_set_link(nd, s); + return 0; } struct inode_operations jfs_symlink_inode_operations = { - .readlink = jfs_readlink, + .readlink = generic_readlink, .follow_link = jfs_follow_link, .setxattr = jfs_setxattr, .getxattr = jfs_getxattr,