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/inode.c | |
parent | 5723cb01f0295ace2b029b0737dd6525a2de337f (diff) | |
download | lwn-4b8061a67f67ebd28d4273b05d1b6ae38f2a019b.tar.gz lwn-4b8061a67f67ebd28d4273b05d1b6ae38f2a019b.zip |
ufs: switch to simple_follow_link()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ufs/inode.c')
-rw-r--r-- | fs/ufs/inode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index be7d42c7d938..99aaf5c9bf4d 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c @@ -572,9 +572,10 @@ static void ufs_set_inode_ops(struct inode *inode) inode->i_fop = &ufs_dir_operations; inode->i_mapping->a_ops = &ufs_aops; } else if (S_ISLNK(inode->i_mode)) { - if (!inode->i_blocks) + if (!inode->i_blocks) { inode->i_op = &ufs_fast_symlink_inode_operations; - else { + inode->i_link = (char *)UFS_I(inode)->i_u1.i_symlink; + } else { inode->i_op = &ufs_symlink_inode_operations; inode->i_mapping->a_ops = &ufs_aops; } |