bitmap: cleanup bitmap_*_region() implementation
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest8 patches 2 repliesIn review
- v48 patches 5 repliesSuperseded
- v38 patches 10 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 posting 2/2 | 6 patches | 8 replies | Superseded | |
| v2 posting 1/2 | 0 of 6 patches | 0 replies | Superseded | |
| v1 | 6 patches | 4 replies | Superseded |
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | bitmap: align __reg_op() wrappers with modern coding stylelib/ | +5 | 0 replies | |
| 2/8 | bitmap: add test for bitmap_*_region() functionslib/ | +24 | 0 replies | |
| 3/8 | bitmap: fix opencoded bitmap_allocate_region()lib/ | +2 | 0 replies | |
| 4/8 | bitmap: replace _reg_op(REG_OP_ALLOC) with bitmap_set()lib/ | +4 | 0 replies | |
| 5/8 | bitmap: replace _reg_op(REG_OP_RELEASE) with bitmap_clear()lib/ | +1 | 0 replies | |
| 6/8 | bitmap: replace _reg_op(REG_OP_ISFREE) with find_next_bit()lib/ | +1 | 0 replies | |
| 7/8 | bitmap: drop _reg_op() functionlib/ | +0 | 0 replies | |
| 8/8 | bitmap: move bitmap_*_region() functions to bitmap.hinclude/ lib/ | +60 | 0 replies |
Reviews trailers per patch
2 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Andy Shevchenko |
|---|---|
| 1/8 | R-b |
| 2/8 | R-b |
| 3/8 | |
| 4/8 | |
| 5/8 | |
| 6/8 | |
| 7/8 | |
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/8] bitmap: cleanup bitmap_*_region() implementation
bitmap_{allocate,find_free,release}_region() functions are implemented on top of _reg_op() machinery. It duplicates existing generic functionality with no benefits. In fact, generic alternatives may work even better because they optimized for small_const_nbits() case and overall very well optimized for performance and code generation.
This series drops _reg_op() entirely.
v2: https://lore.kernel.org/lkml/[email protected]/T/
v3: https://lore.kernel.org/lkml/[email protected]/T/
v4: https://lore.kernel.org/lkml/[email protected]/T/
v5: - fix bitmap_release_region() implementation;
- address nits for commits comments.
Yury Norov (8):
bitmap: align __reg_op() wrappers with modern coding style
bitmap: add test for bitmap_*_region() functions
bitmap: fix opencoded bitmap_allocate_region()
bitmap: replace _reg_op(REG_OP_ALLOC) with bitmap_set()
bitmap: replace _reg_op(REG_OP_RELEASE) with bitmap_clear()
bitmap: replace _reg_op(REG_OP_ISFREE) with find_next_bit()
bitmap: drop _reg_op() function
bitmap: move bitmap_*_region() functions to bitmap.h
include/linux/bitmap.h | 63 ++++++++++++++++++- lib/bitmap.c | 140 ----------------------------------------- lib/test_bitmap.c | 24 +++++++ 3 files changed, 84 insertions(+), 143 deletions(-)
Signature · 1 line
2.39.2