Commit 94afce7d authored by Byungki Lee's avatar Byungki Lee Committed by Zheng Zengkai
Browse files

f2fs: write checkpoint during FG_GC

stable inclusion
from stable-v5.10.137
commit ec769406d06d5006c40554c4640f6e584ab6ae26
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ec769406d06d5006c40554c4640f6e584ab6ae26



--------------------------------

[ Upstream commit a9163b94 ]

If there's not enough free sections each of which consistis of large segments,
we can hit no free section for upcoming section allocation. Let's reclaim some
prefree segments by writing checkpoints.

Signed-off-by: default avatarByungki Lee <dominicus79@gmail.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>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent 467192df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment