Commit 8aeecaae authored by Baokun Li's avatar Baokun Li
Browse files

Revert "ext4: warn on read-only filesystem in ext4_journal_check_start()"

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IBEQJ3



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

This reverts commit e7fc2b31.

We are about to revert 95257987 ("ext4: drop EXT4_MF_FS_ABORTED flag"),
therefore the changes to the sb_rdonly check are being reverted here.

Fixes: e7fc2b31 ("ext4: warn on read-only filesystem in ext4_journal_check_start()")
Signed-off-by: default avatarBaokun Li <libaokun1@huawei.com>
parent 21eaef8f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -71,9 +71,8 @@ static int ext4_journal_check_start(struct super_block *sb)
	if (unlikely(ext4_forced_shutdown(sb)))
		return -EIO;

	if (WARN_ON_ONCE(sb_rdonly(sb)))
	if (sb_rdonly(sb))
		return -EROFS;

	WARN_ON(sb->s_writers.frozen == SB_FREEZE_COMPLETE);
	journal = EXT4_SB(sb)->s_journal;
	/*