]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: apply zone capacity to all zone type
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 21 Mar 2023 22:58:04 +0000 (15:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:11:10 +0000 (23:11 +0900)
commitb4ff7914b746509eb2d7fa4ca2bab6035d8954bf
tree0cdebf0f4147028eccc5b8b1673f36f818b490f6
parenta847b4c4acf16af7f189331f85bf5684ca2f77c1
f2fs: apply zone capacity to all zone type

[ Upstream commit 0b37ed21e3367539b79284e0b0af2246ffcf0dca ]

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: de881df97768 ("f2fs: support zone capacity less than zone size")
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.c
fs/f2fs/segment.h