Skip to content

Commit 11bec96

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: zone: fix to remove pow2 check condition for zoned block device
Commit 2e2c6e9 ("f2fs: remove power-of-two limitation of zoned device") missed to remove pow2 check condition in init_blkz_info(), fix it. Fixes: 2e2c6e9 ("f2fs: remove power-of-two limitation of zoned device") Signed-off-by: Feng Song <[email protected]> Signed-off-by: Yongpeng Yang <[email protected]> Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 9f0c4a4 commit 11bec96

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

fs/f2fs/super.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3868,11 +3868,6 @@ static int init_blkz_info(struct f2fs_sb_info *sbi, int devi)
38683868
return 0;
38693869

38703870
zone_sectors = bdev_zone_sectors(bdev);
3871-
if (!is_power_of_2(zone_sectors)) {
3872-
f2fs_err(sbi, "F2FS does not support non power of 2 zone sizes\n");
3873-
return -EINVAL;
3874-
}
3875-
38763871
if (sbi->blocks_per_blkz && sbi->blocks_per_blkz !=
38773872
SECTOR_TO_BLOCK(zone_sectors))
38783873
return -EINVAL;

0 commit comments

Comments
 (0)