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:03:20 +0000 (23:03 +0900)
commit88fccb8d0c8a2f29527543543c8bf01a859f85f2
tree20d00242033ce32599a2bec6d24e7f869b16b23b
parentd9e30b8ed41b594d365e7fb81c7831ec956e2766
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