diff options
author | Chao Yu <chao@kernel.org> | 2024-03-08 06:50:57 +0300 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2024-03-27 01:17:27 +0300 |
commit | 30ab3a5e7a550773368b1b4035a1e016da440bc8 (patch) | |
tree | 0b856602427f10c7d0ce6488b1eccbbfed83919b | |
parent | 04226d8e3c4028dc451e9d8777356ec0f7919253 (diff) | |
download | linux-30ab3a5e7a550773368b1b4035a1e016da440bc8.tar.xz |
f2fs: zone: fix to remove pow2 check condition for zoned block device
[ Upstream commit 11bec96afbfbc4679863db55258de440d786821e ]
Commit 2e2c6e9b72ce ("f2fs: remove power-of-two limitation of zoned
device") missed to remove pow2 check condition in init_blkz_info(),
fix it.
Fixes: 2e2c6e9b72ce ("f2fs: remove power-of-two limitation of zoned device")
Signed-off-by: Feng Song <songfeng@oppo.com>
Signed-off-by: Yongpeng Yang <yangyongpeng1@oppo.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | fs/f2fs/super.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index e64ce5abcdf4..4ba613ed3a17 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -3936,11 +3936,6 @@ static int init_blkz_info(struct f2fs_sb_info *sbi, int devi) return 0; zone_sectors = bdev_zone_sectors(bdev); - if (!is_power_of_2(zone_sectors)) { - f2fs_err(sbi, "F2FS does not support non power of 2 zone sizes\n"); - return -EINVAL; - } - if (sbi->blocks_per_blkz && sbi->blocks_per_blkz != SECTOR_TO_BLOCK(zone_sectors)) return -EINVAL; |