summaryrefslogtreecommitdiffstats
path: root/fs/sysv/super.c
diff options
context:
space:
mode:
authorAl Viro2019-04-02 15:42:50 +0200
committerAl Viro2019-04-10 01:21:06 +0200
commit1d8b29fdb7ef39bd76bcd7a7f516938163097b0e (patch)
tree6529627ac8c398afd4d447e7259c0ecc589df138 /fs/sysv/super.c
parentnsfs: unobfuscate (diff)
downloadkernel-qcow2-linux-1d8b29fdb7ef39bd76bcd7a7f516938163097b0e.tar.gz
kernel-qcow2-linux-1d8b29fdb7ef39bd76bcd7a7f516938163097b0e.tar.xz
kernel-qcow2-linux-1d8b29fdb7ef39bd76bcd7a7f516938163097b0e.zip
sysv: bury the broken "quietly truncate the long filenames" logics
It's contrary to the normal semantics, only sysv and adfs try to do that (on any other filesystem you'll get -ENAMETOOLONG instead of quiet truncation) and nobody actually uses that - it got accidentally broken 5 years ago and nobody noticed. Time to bury it... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/sysv/super.c')
-rw-r--r--fs/sysv/super.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/sysv/super.c b/fs/sysv/super.c
index 89765ddfb738..d3b2f54d6449 100644
--- a/fs/sysv/super.c
+++ b/fs/sysv/super.c
@@ -312,7 +312,6 @@ static int complete_read_super(struct super_block *sb, int silent, int size)
flavour_setup[sbi->s_type](sbi, &sb->s_max_links);
- sbi->s_truncate = 1;
sbi->s_ndatazones = sbi->s_nzones - sbi->s_firstdatazone;
sbi->s_inodes_per_block = bsize >> 6;
sbi->s_inodes_per_block_1 = (bsize >> 6)-1;
@@ -334,8 +333,6 @@ static int complete_read_super(struct super_block *sb, int silent, int size)
sb->s_op = &sysv_sops;
if (sbi->s_forced_ro)
sb->s_flags |= SB_RDONLY;
- if (sbi->s_truncate)
- sb->s_d_op = &sysv_dentry_operations;
root_inode = sysv_iget(sb, SYSV_ROOT_INO);
if (IS_ERR(root_inode)) {
printk("SysV FS: get root inode failed\n");