]> git.ipfire.org Git - thirdparty/linux.git/commit
f2fs: wrap all unusable_blocks_per_sec code in CONFIG_BLK_DEV_ZONED
authorYongpeng Yang <yangyongpeng@xiaomi.com>
Mon, 10 Nov 2025 08:22:21 +0000 (16:22 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 4 Dec 2025 02:00:04 +0000 (02:00 +0000)
commit581251e03077f2fb83f9d10f5e21ec7e546a82b4
tree4ccf46254be0f51929b7ad4f9732961172aa37fd
parent24fd7f00161055e1ca0dd137a1d67f87fa781f99
f2fs: wrap all unusable_blocks_per_sec code in CONFIG_BLK_DEV_ZONED

The usage of unusable_blocks_per_sec is already wrapped by
CONFIG_BLK_DEV_ZONED, except for its declaration and the definitions of
CAP_BLKS_PER_SEC and CAP_SEGS_PER_SEC. This patch ensures that all code
related to unusable_blocks_per_sec is properly wrapped under the
CONFIG_BLK_DEV_ZONED option.

Signed-off-by: Yongpeng Yang <yangyongpeng@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/segment.h