Skip to contentSkip to conversation

f2fs: print error information in f2fs_put_super()

PATCH Applied Chao Yu 2 participants 2 messages Aug 6 – Aug 11 F2FS file system

lore
Share & tools
lore

Chao Yu

author maintainer
#0 lore raw

PATCH v2 1/1 f2fs: print error information in f2fs_put_super()

So that we can know in which path we may missed to account the reference correclty: normal path or error handling path.

---
v2:
- fix typo in commit message

 fs/f2fs/super.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/f2fs/super.c +2 -1
index 25309e6d4156..5902b2da7ea4 100644
@@ -2058,7 +2058,8 @@ static void f2fs_put_super(struct super_block *sb)
 		if (!get_pages(sbi, i))
 			continue;
 		f2fs_err(sbi, "detect filesystem reference count leak during "
-			"umount, type: %d, count: %lld", i, get_pages(sbi, i));
+			"umount, type: %d, count: %lld, err: %d, cp_err: %d",
+			i, get_pages(sbi, i), err, f2fs_cp_error(sbi));
 		f2fs_bug_on(sbi, 1);
 	}
 
Signature · 1 line
2.49.0
#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 Thu, 6 Aug 2026 10:52:24 +0800 you wrote:

So that we can know in which path we may missed to account the reference correclty: normal path or error handling path.

---
v2:
- fix typo in commit message

 fs/f2fs/super.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Here is the summary with links:
- [f2fs-dev,v2] f2fs: print error information in f2fs_put_super()

    https://git.kernel.org/jaegeuk/f2fs/c/5d59e6a3777c

You are awesome, thank you!

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