Skip to contentSkip to conversation

f2fs: check zone write pointer points to the end of zone

PATCH Applied Daeho Jeong 2 participants 2 messages Jun 12, 2023 – Jun 15, 2023 F2FS file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs: check zone write pointer points to the end of zone

From: Daeho Jeong <[email protected]>

We don't need to report an issue, when the zone write pointer already points to the end of the zone, since the zone mismatch is already taken care.

---
 fs/f2fs/segment.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
fs/f2fs/segment.c +6 -2
index 0c0c033c4bdd..8c7af8b4fc47 100644
@@ -4888,8 +4888,12 @@ static int check_zone_write_pointer(struct f2fs_sb_info *sbi,
 			break;
 	}
 
-	// The write pointer matches with the valid blocks
-	if (last_valid_block + 1 == wp_block)
+	/*
+	 * The write pointer matches with the valid blocks or
+	 * already points to the end of the zone.
+	 */
+	if ((last_valid_block + 1 == wp_block) ||
+			(zone->wp == zone->start + zone->len))
 		return 0;
 
 	if (last_valid_block + 1 == zone_block) {
Signature · 1 line
2.41.0.162.gfafddb0af9-goog
#1 lore raw
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:

Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:

Quoted 9 lines · On Mon, 12 Jun 2023 16:32:03 -0700 you wrote:

From: Daeho Jeong <[email protected]>

We don't need to report an issue, when the zone write pointer already points to the end of the zone, since the zone mismatch is already taken care.

[...]

Here is the summary with links:
- [f2fs-dev] f2fs: check zone write pointer points to the end of zone

    https://git.kernel.org/jaegeuk/f2fs/c/7faa5e31fcc1

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html