diff options
author | 2021-10-24 18:43:56 +0200 | |
---|---|---|
committer | 2021-10-28 08:58:27 -0300 | |
commit | e30bb300a401a65b985c6af1f799080c80e1b950 (patch) | |
tree | e113ae168afa4bc7cf07e322f1b3f056cf9f2797 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | RDMA/rxe: Save a few bytes from struct rxe_pool (diff) | |
download | wireguard-linux-e30bb300a401a65b985c6af1f799080c80e1b950.tar.xz wireguard-linux-e30bb300a401a65b985c6af1f799080c80e1b950.zip |
RDMA/rxe: Use 'bitmap_zalloc()' when applicable
'index.table' is a bitmap. So use 'bitmap_zalloc()' to simplify code,
improve the semantic and avoid some open-coded arithmetic in allocator
arguments.
Using 'bitmap_zalloc()' also allows the removal of a now useless
'bitmap_zero()'.
Also change the corresponding 'kfree()' into 'bitmap_free()' to keep
consistency.
Link: https://lore.kernel.org/r/4a3e11d45865678d570333d1962820eb13168848.1635093628.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions