X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fjfs%2Fsymlink.c;h=280161a923e38048b78ee4946f8b112ad33711b0;hb=746550cff061581f89c687ada8523670768364f2;hp=6e028d912e62e8dfd2eba278995c68727c393e61;hpb=86090fcac5e27b630656fe3d963a6b80e26dac44;p=linux-2.6.git diff --git a/fs/jfs/symlink.c b/fs/jfs/symlink.c index 6e028d912..280161a92 100644 --- a/fs/jfs/symlink.c +++ b/fs/jfs/symlink.c @@ -23,17 +23,12 @@ 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,