We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eee0023 commit f57886cCopy full SHA for f57886c
fs/ext4/super.c
@@ -6205,11 +6205,13 @@ static int ext4_clear_journal_err(struct super_block *sb,
6205
errstr = ext4_decode_error(sb, j_errno, nbuf);
6206
ext4_warning(sb, "Filesystem error recorded "
6207
"from previous mount: %s", errstr);
6208
- ext4_warning(sb, "Marking fs in need of filesystem check.");
6209
6210
EXT4_SB(sb)->s_mount_state |= EXT4_ERROR_FS;
6211
es->s_state |= cpu_to_le16(EXT4_ERROR_FS);
6212
- ext4_commit_super(sb);
+ j_errno = ext4_commit_super(sb);
+ if (j_errno)
6213
+ return j_errno;
6214
+ ext4_warning(sb, "Marked fs in need of filesystem check.");
6215
6216
jbd2_journal_clear_err(journal);
6217
jbd2_journal_update_sb_errno(journal);
0 commit comments