summaryrefslogtreecommitdiff
path: root/lib/percpu-refcount.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-10-24 19:40:23 +0200
committerChristoph Hellwig <hch@lst.de>2021-10-27 08:20:09 +0200
commit9fbd8dc19aa57ec8fe92606043199919527cd9be (patch)
tree0be05b49287ea696ecbb850bfc19d2036f15a1cf /lib/percpu-refcount.c
parent7d6db80b7d264d6af9dc21baafe59f93cc4607c5 (diff)
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>
Diffstat (limited to 'lib/percpu-refcount.c')
0 files changed, 0 insertions, 0 deletions