From ad476fedc7805ca7cec12a56e697afe37566e573 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sat, 2 May 2015 10:41:20 -0400 Subject: jfs: switch to simple_follow_link() Reviewed-by: Jan Kara Acked-by: Dave Kleikamp Signed-off-by: Al Viro --- fs/jfs/symlink.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'fs/jfs/symlink.c') diff --git a/fs/jfs/symlink.c b/fs/jfs/symlink.c index 80f42bcc4ef1..5929e2363cb8 100644 --- a/fs/jfs/symlink.c +++ b/fs/jfs/symlink.c @@ -17,21 +17,13 @@ */ #include -#include #include "jfs_incore.h" #include "jfs_inode.h" #include "jfs_xattr.h" -static void *jfs_follow_link(struct dentry *dentry, struct nameidata *nd) -{ - char *s = JFS_IP(d_inode(dentry))->i_inline; - nd_set_link(nd, s); - return NULL; -} - const struct inode_operations jfs_fast_symlink_inode_operations = { .readlink = generic_readlink, - .follow_link = jfs_follow_link, + .follow_link = simple_follow_link, .setattr = jfs_setattr, .setxattr = jfs_setxattr, .getxattr = jfs_getxattr, -- cgit v1.2.3