Skip to contentSkip to conversation

fsck.f2fs: run full scan if checkpoint is disabled

PATCH In review Jaegeuk Kim 2 participants 3 messages Dec 4, 2023 – Dec 5, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fsck.f2fs: run full scan if checkpoint is disabled

Let's fix any inconsistency until checkpint being enabled back.

---
 fsck/mount.c | 1 +
 1 file changed, 1 insertion(+)
fsck/mount.c +1 -0
index e957904494ef..30c62280b281 100644
@@ -1435,6 +1435,7 @@ static int f2fs_should_proceed(struct f2fs_super_block *sb, u32 flag)
 {
 	if (!c.fix_on && (c.auto_fix || c.preen_mode)) {
 		if (flag & CP_FSCK_FLAG ||
+			flag & CP_DISABLED_FLAG ||
 			flag & CP_QUOTA_NEED_FSCK_FLAG ||
 			c.abnormal_stop || c.fs_errors ||
 			(exist_qf_ino(sb) && (flag & CP_ERROR_FLAG))) {
Signature · 8 lines
2.43.0.rc2.451.g8631bc7472-goog



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#1 lore raw

LGTM

Quoted 25 lines · Jaegeuk Kim

Let's fix any inconsistency until checkpint being enabled back.

---
 fsck/mount.c | 1 +
 1 file changed, 1 insertion(+)
fsck/mount.c +1 -1
index e957904494ef..30c62280b281 100644
@@ -1435,6 +1435,7 @@ static int f2fs_should_proceed(struct f2fs_super_block *sb, u32 flag)
 {
        if (!c.fix_on && (c.auto_fix || c.preen_mode)) {
                if (flag & CP_FSCK_FLAG ||
+                       flag & CP_DISABLED_FLAG ||
                        flag & CP_QUOTA_NEED_FSCK_FLAG ||
                        c.abnormal_stop || c.fs_errors ||
                        (exist_qf_ino(sb) && (flag & CP_ERROR_FLAG))) {
--

2.43.0.rc2.451.g8631bc7472-goog

Quoted 4 lines

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

#2 lore raw

Thanks. Let me add reviewed-by. :)

Quoted 28 lines · Daeho Jeong

LGTM

Quoted 25 lines · Jaegeuk Kim

Let's fix any inconsistency until checkpint being enabled back.

---
 fsck/mount.c | 1 +
 1 file changed, 1 insertion(+)
fsck/mount.c +1 -1
index e957904494ef..30c62280b281 100644
@@ -1435,6 +1435,7 @@ static int f2fs_should_proceed(struct f2fs_super_block *sb, u32 flag)
 {
        if (!c.fix_on && (c.auto_fix || c.preen_mode)) {
                if (flag & CP_FSCK_FLAG ||
+                       flag & CP_DISABLED_FLAG ||
                        flag & CP_QUOTA_NEED_FSCK_FLAG ||
                        c.abnormal_stop || c.fs_errors ||
                        (exist_qf_ino(sb) && (flag & CP_ERROR_FLAG))) {
--

2.43.0.rc2.451.g8631bc7472-goog

Quoted 4 lines
Quoted 4 lines

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel