]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: fix to convert log type to segment data type correctly
authorChao Yu <chao@kernel.org>
Wed, 30 Oct 2024 08:17:01 +0000 (16:17 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 1 Nov 2024 01:24:42 +0000 (01:24 +0000)
commit51d3d952c5084393d89cce0b951bb5f18eb97bb1
tree7cf54eb4ef62498d228448b01a27077db1ae1d47
parent1df2bc3c8252261860787a02f61797a914b99163
f2fs: fix to convert log type to segment data type correctly

This patch introduces a new helper log_type_to_seg_type() to convert
log type to segment data type, and uses it to clean up opened codes
in build_curseg(), and also it fixes to convert log type before use
in do_write_page().

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c