null_blk: cleanup null_gendisk_register
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Dec 2019 09:39:02 +0000 (10:39 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Dec 2019 15:51:24 +0000 (08:51 -0700)
commit979d54475e0b75a28e55528617fecf83b4a221da
treec227276082fc142bf06eb8396984f618f9db0fc1
parent5c4bd1f40c23d08ffbdccd68a5fd63751c794d89
null_blk: cleanup null_gendisk_register

Use a saner size calculation, and do a trivial cleanup on the zone
revalidation to prepare to future changes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk_main.c