]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
lib: objagg: Use the bitmap API when applicable
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 23 Dec 2021 21:33:42 +0000 (22:33 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 24 Dec 2021 22:54:29 +0000 (14:54 -0800)
commit7c63f26cb518f57aa5feaef7e0abe2697155df35
tree012c263270c173b1ef968695c8767b2afc5cc0a6
parent7467d716583eec12ae84a33fb1fb27d22333fc64
lib: objagg: Use the bitmap API when applicable

Use 'bitmap_zalloc()' to simplify code, improve the semantic and reduce
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>
Link: https://lore.kernel.org/r/f9541b085ec68e573004e1be200c11c9c901181a.1640295165.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
lib/objagg.c