]> 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)
commit456d7f6d0f6b2de234c22a903e488820341d0371
treecae4abf4f595b9dfd5c42e83da3b1d6596fb07ca
parent8d61c3578b34842e4726b0ed8b0440392fda3232
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