f2fs: apply zone capacity to all zone type
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 21 Mar 2023 22:58:04 +0000 (15:58 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 29 Mar 2023 22:17:39 +0000 (15:17 -0700)
commit0b37ed21e3367539b79284e0b0af2246ffcf0dca
tree505d7e275756597cb7f9a80481aea09103e83b8c
parentb822dc914917f9381e7a04ff6872c1b6883dd4ae
f2fs: apply zone capacity to all zone type

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>
fs/f2fs/segment.c
fs/f2fs/segment.h