]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: ensure only power of 2 zone sizes are allowed
authorLuis Chamberlain <mcgrof@kernel.org>
Wed, 27 Apr 2022 16:02:54 +0000 (18:02 +0200)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 6 May 2022 17:18:12 +0000 (10:18 -0700)
commitb961f01648c56ac8deeb079b33890ec0fb522ca0
treedd0d017180340288c1593e54d969ea98ea90ec4c
parent828d393de130cc6aa12cec6d53126b6146b8a83a
f2fs: ensure only power of 2 zone sizes are allowed

F2FS zoned support has power of 2 zone size assumption in many places
such as in __f2fs_issue_discard_zone, init_blkz_info. As the power of 2
requirement has been removed from the block layer, explicitly add a
condition in f2fs to allow only power of 2 zone size devices.

This condition will be relaxed once those calculation based on power of
2 is made generic.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c