dm zone: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 7 Jun 2023 03:26:27 +0000 (05:26 +0200)
committerMike Snitzer <snitzer@kernel.org>
Fri, 16 Jun 2023 22:24:13 +0000 (18:24 -0400)
commite118029cb7605a89bf334a83023fc0c102420954
tree457fca8ab3e1ee168c7a69d8e68a8f836c2822ef
parentd48300120627a1cb98914738fff38b424625b8ad
dm zone: 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>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-zone.c