Commit e9c1b3c3 authored by Baokun Li's avatar Baokun Li
Browse files

Revert "ext4: replace read-only check for shutdown check in mmp code"

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



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

This reverts commit 1e1566b9.

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: 1e1566b9 ("ext4: replace read-only check for shutdown check in mmp code")
Signed-off-by: default avatarBaokun Li <libaokun1@huawei.com>
parent 5e22eda7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -162,7 +162,7 @@ static int kmmpd(void *data)
	memcpy(mmp->mmp_nodename, init_utsname()->nodename,
	       sizeof(mmp->mmp_nodename));

	while (!kthread_should_stop() && !ext4_forced_shutdown(sb)) {
	while (!kthread_should_stop() && !sb_rdonly(sb)) {
		if (!ext4_has_feature_mmp(sb)) {
			ext4_warning(sb, "kmmpd being stopped since MMP feature"
				     " has been disabled.");