Skip to content

bitmap: unify for_each_bit() macros

Yury Norov linux-mm linux-mmc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 5 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm/percpu: micro-optimize pcpu_is_populated()mm/percpu.c+8 -71 reply
2/4bitmap: unify find_bit operationsdrivers/mmc/host/renesas_sdhi_core.c include/linux/bitmap.h include/linux/find.h +1 more+65 -544 replies
3/4lib: bitmap: add performance test for bitmap_print_to_pagebuflib/test_bitmap.c+37 -00 replies
4/4vsprintf: rework bitmap_list_stringlib/vsprintf.c+7 -170 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchDennis ZhouUlf HanssonWolfram Sang
1/4A-b
2/4A-b A-b T-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/4] bitmap: unify for_each_bit() macros

Replace bitmap_for_each_bit_region() with for_each_set_bitrange() and ~30 times improve bitmap_list_string() with new macro.

On top of:
https://lore.kernel.org/lkml/YNp3extAkTY8Aocd@yury-ThinkPad/T/ and
https://lore.kernel.org/lkml/YNirnaYw1GSxg1jK@yury-ThinkPad/T/

The full series is here:
https://github.com/norov/linux/commits/bitmap-20210716

v1: https://lore.kernel.org/patchwork/patch/1455255/
v2: - replace bitmap_for_each_bit_region();
- address comments for bitmap_list_string() rework.

Yury Norov (4):
mm/percpu: micro-optimize pcpu_is_populated()
bitmap: unify find_bit operations
lib: bitmap: add performance test for bitmap_print_to_pagebuf
vsprintf: rework bitmap_list_string

 drivers/mmc/host/renesas_sdhi_core.c |  2 +-
 include/linux/bitmap.h               | 41 --------------------
 include/linux/find.h                 | 56 ++++++++++++++++++++++++++++
 lib/test_bitmap.c                    | 37 ++++++++++++++++++
 lib/vsprintf.c                       | 24 ++++--------
 mm/percpu.c                          | 35 ++++++++---------
 6 files changed, 117 insertions(+), 78 deletions(-)
Signature · 1 line
2.30.2