block: null_blk: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 3 Jul 2022 16:05:43 +0000 (18:05 +0200)
committerJens Axboe <axboe@kernel.dk>
Sun, 3 Jul 2022 16:42:33 +0000 (10:42 -0600)
commitaa516a92584eabad397f0a47597b20754521c876
tree6bfde95627360ce4bc05f82e74506593f4cc5719
parentd01051ed365d95dfd5dec100a2b22e0c0cb8912d
block: null_blk: Use the bitmap API to allocate bitmaps

Use bitmap_zalloc()/bitmap_free() instead of hand-writing them.

It is less verbose and it improves the semantic.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/7c4d3116ba843fc4a8ae557dd6176352a6cd0985.1656864320.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/main.c