Skip to contentSkip to conversation

f2fs: zone: fix to remove pow2 check condition for zoned block device

PATCH Applied Chao Yu 2 participants 2 messages Mar 8, 2024 – Mar 13, 2024 F2FS file system

lore
Share & tools
lore

Chao Yu

author maintainer
#0 lore raw

PATCH 1/1 f2fs: zone: fix to remove pow2 check condition for zoned block device

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")
---
 fs/f2fs/super.c | 5 -----
 1 file changed, 5 deletions(-)
fs/f2fs/super.c +0 -5
index 0676c2dcbbf7..fb4c1ed72710 100644
@@ -3874,11 +3874,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;
Signature · 1 line
2.40.1
#1 lore raw
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:

Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:

Quoted 10 lines · On Fri, 8 Mar 2024 11:50:57 +0800 you wrote:

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")

[...]

Here is the summary with links:
- [f2fs-dev] f2fs: zone: fix to remove pow2 check condition for zoned block device

    https://git.kernel.org/jaegeuk/f2fs/c/11bec96afbfb

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html