Commit 38a446d5 authored by Sheng Yong's avatar Sheng Yong Committed by Treehugger Robot
Browse files

UPSTREAM: 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: 61461fc9 ("f2fs: fix to avoid touching checkpointed data in get_victim()")
Change-Id: I9a94664d68b2661cb04e9e630e0d37d2887b1299
Signed-off-by: default avatarSheng Yong <shengyong@oppo.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 8c409989)
parent 5c8f5053
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment