]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: check number of blocks in a current section
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 23 Feb 2024 20:32:05 +0000 (12:32 -0800)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:20:02 +0000 (18:20 -0400)
commiteb1845a8cdb92d099063132812d50cdcf2f28633
treea2bdcbed871157f6a8394892d55eee38dfdf0935
parent41e8018b45ec3993ec2ee6cc45dc18a244d83be0
f2fs: check number of blocks in a current section

[ Upstream commit 7af2df0f67a1469762e59be3726a803882d83f6f ]

In cfd66bb715fd ("f2fs: fix deadloop in foreground GC"), we needed to check
the number of blocks in a section instead of the segment.

Fixes: cfd66bb715fd ("f2fs: fix deadloop in foreground GC")
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/segment.h