OpenCloudOS-Kernel/drivers/block/null_blk
Damien Le Moal cd92cdb9c8 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>
2021-01-29 07:49:22 -07:00
..
Kconfig
Makefile
main.c
null_blk.h
trace.c
trace.h
zoned.c null_blk: cleanup zoned mode initialization 2021-01-29 07:49:22 -07:00