diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-02 10:28:56 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-10 22:18:25 -0400 |
commit | 4b8061a67f67ebd28d4273b05d1b6ae38f2a019b (patch) | |
tree | 30cfaddc69273f2d0c65e842e175f0ad50097ead /fs/ufs/symlink.c | |
parent | 5723cb01f0295ace2b029b0737dd6525a2de337f (diff) | |
download | linux-4b8061a67f67ebd28d4273b05d1b6ae38f2a019b.tar.gz linux-4b8061a67f67ebd28d4273b05d1b6ae38f2a019b.tar.bz2 linux-4b8061a67f67ebd28d4273b05d1b6ae38f2a019b.zip |
ufs: switch to simple_follow_link()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ufs/symlink.c')
-rw-r--r-- | fs/ufs/symlink.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/fs/ufs/symlink.c b/fs/ufs/symlink.c index 5b537e2fdda3..874480bb43e9 100644 --- a/fs/ufs/symlink.c +++ b/fs/ufs/symlink.c @@ -25,23 +25,12 @@ * ext2 symlink handling code */ -#include <linux/fs.h> -#include <linux/namei.h> - #include "ufs_fs.h" #include "ufs.h" - -static void *ufs_follow_link(struct dentry *dentry, struct nameidata *nd) -{ - struct ufs_inode_info *p = UFS_I(d_inode(dentry)); - nd_set_link(nd, (char*)p->i_u1.i_symlink); - return NULL; -} - const struct inode_operations ufs_fast_symlink_inode_operations = { .readlink = generic_readlink, - .follow_link = ufs_follow_link, + .follow_link = simple_follow_link, .setattr = ufs_setattr, }; |