]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd1aba3ee8fe597d7b32558f2def76a0195db17cc
treec227276082fc142bf06eb8396984f618f9db0fc1
parent26a489af16091bd3aadae53a0af6aff853c18cfa
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