f2fs: use iostat_lat_type directly as a parameter in the iostat_update_and_unbind_ctx()
authorYangtao Li <frank.li@vivo.com>
Wed, 1 Feb 2023 10:47:02 +0000 (18:47 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 7 Feb 2023 18:39:28 +0000 (10:39 -0800)
commitd9bac032ac0de8f510b44904b6eb7272679883d1
tree7e18c6b87d16338cb86418a2c2267ff0569f4abc
parentd23be468eada21c828058e0e8d60409eaec373ab
f2fs: use iostat_lat_type directly as a parameter in the iostat_update_and_unbind_ctx()

Convert to use iostat_lat_type as parameter instead of raw number.
BTW, move NUM_PREALLOC_IOSTAT_CTXS to the header file, adjust
iostat_lat[{0,1,2}] to iostat_lat[{READ_IO,WRITE_SYNC_IO,WRITE_ASYNC_IO}]
in tracepoint function, and rename iotype to page_type to match the definition.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
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/data.c
fs/f2fs/iostat.c
fs/f2fs/iostat.h
include/trace/events/f2fs.h