]> git.baikalelectronics.ru Git - kernel.git/commit
null_blk: cleanup zoned mode initialization
authorDamien Le Moal <damien.lemoal@wdc.com>
Fri, 29 Jan 2021 14:47:25 +0000 (23:47 +0900)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 Jan 2021 14:49:22 +0000 (07:49 -0700)
commit9c725ce8c7fbaffdbeecf727c31e6e9313b89a9e
tree36bd10ac8a71306ee6a766b454b91c80290b44e8
parent555461fe122e8de54d4f7d1bfc033b751a704767
null_blk: cleanup zoned mode initialization

To avoid potential compilation problems, replaced the badly written
MB_TO_SECTS() macro (missing parenthesis around the argument use) with
the inline function mb_to_sects(). And while at it, simplify the
calculation of the total number of zones of the device using the
round_up() macro.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/zoned.c