f2fs: merge f2fs_show_injection_info() into time_to_inject()
authorYangtao Li <frank.li@vivo.com>
Tue, 20 Dec 2022 18:39:04 +0000 (02:39 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 11 Jan 2023 19:15:19 +0000 (11:15 -0800)
commitc40e15a9a59f79e79d9500f1fd019321ec35b959
tree89dc3711f16003ff6e0724ed84cec867d0424d5d
parent1cd7565449de6e838ff5a3fa75fbd2ce58c6d955
f2fs: merge f2fs_show_injection_info() into time_to_inject()

There is no need to additionally use f2fs_show_injection_info()
to output information. Concatenate time_to_inject() and
__time_to_inject() via a macro. In the new __time_to_inject()
function, pass in the caller function name and parent function.

In this way, we no longer need the f2fs_show_injection_info() function,
and let's remove it.

Suggested-by: Chao Yu <chao@kernel.org>
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/data.c
fs/f2fs/dir.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/gc.c
fs/f2fs/inode.c
fs/f2fs/node.c
fs/f2fs/segment.c
fs/f2fs/super.c