Commit b4751fc0 authored by Yongpeng Yang's avatar Yongpeng Yang Committed by Greg Kroah-Hartman
Browse files

f2fs: check curseg->inited before write_sum_page in change_curseg



[ Upstream commit 43563069 ]

In the __f2fs_init_atgc_curseg->get_atssr_segment calling,
curseg->segno is NULL_SEGNO, indicating that there is no summary
block that needs to be written.

Fixes: 093749e2 ("f2fs: support age threshold based garbage collection")
Signed-off-by: default avatarYongpeng Yang <yangyongpeng1@oppo.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3d3926ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment