Messages in this thread | | | From | Yangtao Li <> | Subject | Re: [PATCH] f2fs: merge f2fs_show_injection_info() into time_to_inject() | Date | Sat, 17 Dec 2022 12:51:51 +0800 |
| |
Hi Chao,
> Yeah, but it depends on compile option, right? If user use -O0 or -fno-inline option, inline function will not be expanded...
This is not a problem, we just need to mark it as __always_inline.
static __always_inline bool __time_to_inject(struct f2fs_sb_info *sbi, int type, const char *func_name)
> How about using deterministic implementation?
This way works, or do you have a better suggestion. After marking the function as __always_inline, there will be no problem you mentioned.
Thx, Yangtao
| |