f2fs: add dump_stack() in f2fs_handle_critical_error()

To show call stack, so that we can see who causes critical error, note
that it won't call dump_stack() for shutdown path.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Chao Yu 2025-02-12 09:54:13 +08:00 committed by Jaegeuk Kim
parent 1534747d31
commit 4f91f07470

View File

@ -4250,6 +4250,8 @@ void f2fs_handle_critical_error(struct f2fs_sb_info *sbi, unsigned char reason)
if (shutdown)
set_sbi_flag(sbi, SBI_IS_SHUTDOWN);
else
dump_stack();
/*
* Continue filesystem operators if errors=continue. Should not set