]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Tue, 2 Aug 2022 23:14:44 +0000 (17:14 -0600)
commit0099e5d943b1475ba849025c3431f59efb201c1d
treecae4abf4f595b9dfd5c42e83da3b1d6596fb07ca
parent0254c8427bad085c25e028d37f74a578431b052e
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