Commit 1593cdf3 authored by Jaegeuk Kim's avatar Jaegeuk Kim Committed by sanglipeng
Browse files

f2fs: apply zone capacity to all zone type

stable inclusion
from stable-v5.10.180
commit d11a74577c21cf6dc1db65b6178ef3d03953ccf0
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8DDFN

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



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

[ Upstream commit 0b37ed21 ]

If we manage the zone capacity per zone type, it'll break the GC assumption.
And, the current logic complains valid block count mismatch.
Let's apply zone capacity to all zone type, if specified.

Fixes: de881df9 ("f2fs: support zone capacity less than zone size")
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 avatarsanglipeng <sanglipeng1@jd.com>
parent f0bf5413
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment