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.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Chao Yu 2026-08-06 10:52:24 +08:00 committed by Jaegeuk Kim
parent 5b86eab84a
commit 5d59e6a377

View File

@ -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);
}