f2fs: add f2fs_init_write_merge_io function
authorYufen Yu <yuyufen@huawei.com>
Wed, 25 May 2022 09:43:36 +0000 (17:43 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 25 May 2022 17:48:56 +0000 (10:48 -0700)
commit908ea6541661d72c6852650f91adebba88b0de0b
treef39bf74b1d0cf8464b80431e2976e0f527341d42
parent78901cfa44981d170fb5caae0d5421c97782b0d0
f2fs: add f2fs_init_write_merge_io function

Almost all other initialization of variables in f2fs_fill_super are
extraced to a single function. Also do it for write_io[], which can
make code more clean.

This patch just refactors the code, theres no functional change.

Signed-off-by: Yufen Yu <yuyufen@huawei.com>
Reviewed-by: Chao Yu <chao@kernel.org>
[Jaegeuk Kim: clean up]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/super.c