diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2023-04-17 17:12:52 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2023-04-24 11:03:10 -0700 |
commit | 2e2c6e9b72ce3d137984c867eb5625b8498cfe2b (patch) | |
tree | 85282ff9453a1d5b53ca753d982d227611ca504f /fs/f2fs/f2fs.h | |
parent | 5584785080045e6cd3ebc1aac49b9c0ec57f136a (diff) | |
download | lwn-2e2c6e9b72ce3d137984c867eb5625b8498cfe2b.tar.gz lwn-2e2c6e9b72ce3d137984c867eb5625b8498cfe2b.zip |
f2fs: remove power-of-two limitation of zoned device
In f2fs, there's no reason to force po2.
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index d87044516fe9..d211ee89c158 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -1523,7 +1523,6 @@ struct f2fs_sb_info { #ifdef CONFIG_BLK_DEV_ZONED unsigned int blocks_per_blkz; /* F2FS blocks per zone */ - unsigned int log_blocks_per_blkz; /* log2 F2FS blocks per zone */ #endif /* for node-related operations */ @@ -4390,7 +4389,7 @@ F2FS_FEATURE_FUNCS(readonly, RO); static inline bool f2fs_blkz_is_seq(struct f2fs_sb_info *sbi, int devi, block_t blkaddr) { - unsigned int zno = blkaddr >> sbi->log_blocks_per_blkz; + unsigned int zno = blkaddr / sbi->blocks_per_blkz; return test_bit(zno, FDEV(devi).blkz_seq); } |