summaryrefslogtreecommitdiffstats
path: root/kernel/fs/sysv/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/sysv/inode.c')
-rw-r--r--kernel/fs/sysv/inode.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/kernel/fs/sysv/inode.c b/kernel/fs/sysv/inode.c
index 88956309c..02fa1dcc5 100644
--- a/kernel/fs/sysv/inode.c
+++ b/kernel/fs/sysv/inode.c
@@ -162,14 +162,8 @@ void sysv_set_inode(struct inode *inode, dev_t rdev)
inode->i_fop = &sysv_dir_operations;
inode->i_mapping->a_ops = &sysv_aops;
} else if (S_ISLNK(inode->i_mode)) {
- if (inode->i_blocks) {
- 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,
- sizeof(SYSV_I(inode)->i_data) - 1);
- }
+ inode->i_op = &sysv_symlink_inode_operations;
+ inode->i_mapping->a_ops = &sysv_aops;
} else
init_special_inode(inode, inode->i_mode, rdev);
}