aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index a7b4b6e10269..5c787647afe2 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3446,7 +3446,6 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
3446 unsigned long journal_devnum = 0; 3446 unsigned long journal_devnum = 0;
3447 unsigned long def_mount_opts; 3447 unsigned long def_mount_opts;
3448 struct inode *root; 3448 struct inode *root;
3449 char *cp;
3450 const char *descr; 3449 const char *descr;
3451 int ret = -ENOMEM; 3450 int ret = -ENOMEM;
3452 int blocksize, clustersize; 3451 int blocksize, clustersize;
@@ -3477,8 +3476,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
3477 part_stat_read(sb->s_bdev->bd_part, sectors[1]); 3476 part_stat_read(sb->s_bdev->bd_part, sectors[1]);
3478 3477
3479 /* Cleanup superblock name */ 3478 /* Cleanup superblock name */
3480 for (cp = sb->s_id; (cp = strchr(cp, '/'));) 3479 strreplace(sb->s_id, '/', '!');
3481 *cp = '!';
3482 3480
3483 /* -EINVAL is default */ 3481 /* -EINVAL is default */
3484 ret = -EINVAL; 3482 ret = -EINVAL;