Skip to content

Commit d176b1f

Browse files
jankaratytso
authored andcommitted
ext4: handle error of ext4_setup_system_zone() on remount
ext4_setup_system_zone() can fail. Handle the failure in ext4_remount(). Reviewed-by: Lukas Czerner <[email protected]> Signed-off-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 9375ac7 commit d176b1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fs/ext4/super.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5747,7 +5747,10 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data)
57475747
ext4_register_li_request(sb, first_not_zeroed);
57485748
}
57495749

5750-
ext4_setup_system_zone(sb);
5750+
err = ext4_setup_system_zone(sb);
5751+
if (err)
5752+
goto restore_opts;
5753+
57515754
if (sbi->s_journal == NULL && !(old_sb_flags & SB_RDONLY)) {
57525755
err = ext4_commit_super(sb, 1);
57535756
if (err)

0 commit comments

Comments
 (0)