]> www.infradead.org Git - users/hch/dma-mapping.git/commit
dma-mapping: use 'bitmap_zalloc()' when applicable dma-mapping-5.16
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 24 Oct 2021 17:40:23 +0000 (19:40 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 27 Oct 2021 06:20:09 +0000 (08:20 +0200)
commit9fbd8dc19aa57ec8fe92606043199919527cd9be
tree0be05b49287ea696ecbb850bfc19d2036f15a1cf
parent7d6db80b7d264d6af9dc21baafe59f93cc4607c5
dma-mapping: use 'bitmap_zalloc()' when applicable

'dma_mem->bitmap' is a bitmap. So use 'bitmap_zalloc()' to simplify code,
improve the semantic and avoid some open-coded arithmetic in allocator
arguments.

Also change the corresponding 'kfree()' into 'bitmap_free()' to keep
consistency.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/coherent.c