提交 7d7876a7 编写于 作者: Y Ye Bin 提交者: Cheng Jian

ext4: Fix not report exception message when mount with errors=continue

hulk inclusion
category: bugfix
bugzilla: 50614
CVE: NA

-----------------------------------------------

Fixes: 49af7ecfab9a ("ext4: don't remount read-only with errors=continue on reboot")
Signed-off-by: NYe Bin <yebin10@huawei.com>
Reviewed-by: Nzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NCheng Jian <cj.chengjian@huawei.com>
上级 bf022bab
......@@ -509,9 +509,12 @@ static void ext4_handle_error(struct super_block *sb)
if (test_opt(sb, WARN_ON_ERROR))
WARN_ON_ONCE(1);
if (sb_rdonly(sb) || test_opt(sb, ERRORS_CONT))
if (sb_rdonly(sb))
return;
if (test_opt(sb, ERRORS_CONT))
goto out;
EXT4_SB(sb)->s_mount_flags |= EXT4_MF_FS_ABORTED;
if (journal)
jbd2_journal_abort(journal, -EIO);
......@@ -533,6 +536,7 @@ static void ext4_handle_error(struct super_block *sb)
sb->s_id);
}
out:
ext4_netlink_send_info(sb, 1);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册