mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/6] bitmap: remove _reg_op()
@ 2022-10-28  1:48 Yury Norov
  2022-10-28  1:48 ` [PATCH 1/6] bitmap: add bitmap_empty_from() Yury Norov
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Yury Norov @ 2022-10-28  1:48 UTC (permalink / raw)
  To: linux-kernel, Andy Shevchenko, Rasmus Villemoes, Yury Norov

_reg_op() duplicates functionality of other bitmap functions.
This series removes it.

On top of this:
https://lore.kernel.org/lkml/20221027043810.350460-1-yury.norov@gmail.com/

Yury Norov (6):
  bitmap: add bitmap_empty_from()
  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 bitmap_empty_from()
  bitmap: fix opencoded bitmap_allocate_region()
  bitmap: drop _reg_op()

 include/linux/bitmap.h | 11 ++++++
 lib/bitmap.c           | 89 +++---------------------------------------
 2 files changed, 17 insertions(+), 83 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCH 0/6] bitmap: cleanup bitmap_*_region() implementation
@ 2023-07-27  2:02 Yury Norov
  2023-07-27  2:02 ` [PATCH 2/6] bitmap: replace _reg_op(REG_OP_ALLOC) with bitmap_set() Yury Norov
  0 siblings, 1 reply; 10+ messages in thread
From: Yury Norov @ 2023-07-27  2:02 UTC (permalink / raw)
  To: linux-kernel, Andy Shevchenko, Rasmus Villemoes; +Cc: Yury Norov

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.

Yury Norov (6):
  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()
  bitmap: move functions

 include/linux/bitmap.h |  65 ++++++++++++++++++-
 lib/bitmap.c           | 140 -----------------------------------------
 2 files changed, 62 insertions(+), 143 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-07-27  2:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-28  1:48 [PATCH 0/6] bitmap: remove _reg_op() Yury Norov
2022-10-28  1:48 ` [PATCH 1/6] bitmap: add bitmap_empty_from() Yury Norov
2022-10-28  1:48 ` [PATCH 2/6] bitmap: replace _reg_op(REG_OP_ALLOC) with bitmap_set() Yury Norov
2022-11-11  6:54   ` kernel test robot
2022-10-28  1:48 ` [PATCH 3/6] bitmap: replace _reg_op(REG_OP_RELEASE) with bitmap_clear() Yury Norov
2022-10-28  1:48 ` [PATCH 4/6] bitmap: replace _reg_op(REG_OP_ISFREE) with bitmap_empty_from() Yury Norov
2022-10-28  1:48 ` [PATCH 5/6] bitmap: fix opencoded bitmap_allocate_region() Yury Norov
2022-10-28  1:48 ` [PATCH 6/6] bitmap: drop _reg_op() Yury Norov
2022-11-03  2:09 ` [PATCH 0/6] bitmap: remove _reg_op() Yury Norov
2023-07-27  2:02 [PATCH 0/6] bitmap: cleanup bitmap_*_region() implementation Yury Norov
2023-07-27  2:02 ` [PATCH 2/6] bitmap: replace _reg_op(REG_OP_ALLOC) with bitmap_set() Yury Norov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®