summaryrefslogtreecommitdiffstats
path: root/fs/jfs/symlink.c
diff options
context:
space:
mode:
authorAl Viro2015-05-02 16:41:20 +0200
committerAl Viro2015-05-11 04:18:26 +0200
commitad476fedc7805ca7cec12a56e697afe37566e573 (patch)
tree019633b2f04d8626a9625db0f6a9dc6f61bda527 /fs/jfs/symlink.c
parentsysv: switch to simple_follow_link() (diff)
downloadkernel-qcow2-linux-ad476fedc7805ca7cec12a56e697afe37566e573.tar.gz
kernel-qcow2-linux-ad476fedc7805ca7cec12a56e697afe37566e573.tar.xz
kernel-qcow2-linux-ad476fedc7805ca7cec12a56e697afe37566e573.zip
jfs: switch to simple_follow_link()
Reviewed-by: Jan Kara <jack@suse.cz> Acked-by: Dave Kleikamp <dave.kleikamp@oracle.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/jfs/symlink.c')
-rw-r--r--fs/jfs/symlink.c10
1 files changed, 1 insertions, 9 deletions
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 <linux/fs.h>
-#include <linux/namei.h>
#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,