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
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel