summaryrefslogtreecommitdiffstats
path: root/fs/sysv/inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-05-02 16:37:09 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2015-05-11 04:18:26 +0200
commit2e03f3ea7acbee59a89ea73a696b2eb4c3145cde (patch)
tree0d9a2ad8183ff73678ee231ab93730ebff048324 /fs/sysv/inode.c
parentubifs: switch to simple_follow_link() (diff)
downloadlinux-2e03f3ea7acbee59a89ea73a696b2eb4c3145cde.tar.xz
linux-2e03f3ea7acbee59a89ea73a696b2eb4c3145cde.zip
sysv: switch to simple_follow_link()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/sysv/inode.c')
-rw-r--r--fs/sysv/inode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/sysv/inode.c b/fs/sysv/inode.c
index 88956309cc86..590ad9206e3f 100644
--- a/fs/sysv/inode.c
+++ b/fs/sysv/inode.c
@@ -166,8 +166,9 @@ void sysv_set_inode(struct inode *inode, dev_t rdev)
inode->i_op = &sysv_symlink_inode_operations;
inode->i_mapping->a_ops = &sysv_aops;
} else {
- inode->i_op = &sysv_fast_symlink_inode_operations;
- nd_terminate_link(SYSV_I(inode)->i_data, inode->i_size,
+ inode->i_op = &simple_symlink_inode_operations;
+ inode->i_link = (char *)SYSV_I(inode)->i_data;
+ nd_terminate_link(inode->i_link, inode->i_size,
sizeof(SYSV_I(inode)->i_data) - 1);
}
} else