From: Chao Yu Date: Wed, 12 Feb 2025 01:54:13 +0000 (+0800) Subject: f2fs: add dump_stack() in f2fs_handle_critical_error() X-Git-Tag: v6.15-rc1~151^2~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f91f074702af3931a35c244470ae0c4b66f909c;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 1beff52ae80b3..759b642991d4a 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -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