File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -6388,7 +6388,6 @@ static int __ext4_remount(struct fs_context *fc, struct super_block *sb)
6388
6388
struct ext4_mount_options old_opts ;
6389
6389
ext4_group_t g ;
6390
6390
int err = 0 ;
6391
- int enable_rw = 0 ;
6392
6391
#ifdef CONFIG_QUOTA
6393
6392
int enable_quota = 0 ;
6394
6393
int i , j ;
@@ -6575,7 +6574,7 @@ static int __ext4_remount(struct fs_context *fc, struct super_block *sb)
6575
6574
if (err )
6576
6575
goto restore_opts ;
6577
6576
6578
- enable_rw = 1 ;
6577
+ sb -> s_flags &= ~ SB_RDONLY ;
6579
6578
if (ext4_has_feature_mmp (sb )) {
6580
6579
err = ext4_multi_mount_protect (sb ,
6581
6580
le64_to_cpu (es -> s_mmp_block ));
@@ -6622,9 +6621,6 @@ static int __ext4_remount(struct fs_context *fc, struct super_block *sb)
6622
6621
if (!test_opt (sb , BLOCK_VALIDITY ) && sbi -> s_system_blks )
6623
6622
ext4_release_system_zone (sb );
6624
6623
6625
- if (enable_rw )
6626
- sb -> s_flags &= ~SB_RDONLY ;
6627
-
6628
6624
/*
6629
6625
* Reinitialize lazy itable initialization thread based on
6630
6626
* current settings
You can’t perform that action at this time.
0 commit comments