]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: fix start segno of large section
authorSheng Yong <shengyong@oppo.com>
Mon, 8 Jul 2024 12:04:07 +0000 (20:04 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 9 Jul 2024 19:33:50 +0000 (19:33 +0000)
commit8c409989678e92e4a737e7cd2bb04f3efb81071a
tree11f64b413e9ed23bad1d69916b703330c928ea9b
parent388a2a0640e16a8887f0d47dab207f344fbdb913
f2fs: fix start segno of large section

get_ckpt_valid_blocks() checks valid ckpt blocks in current section.
It counts all vblocks from the first to the last segment in the
large section. However, START_SEGNO() is used to get the first segno
in an SIT block. This patch fixes that to get the correct start segno.

Fixes: 61461fc921b7 ("f2fs: fix to avoid touching checkpointed data in get_victim()")
Signed-off-by: Sheng Yong <shengyong@oppo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.h