public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] bitmap: cleanup bitmap_*_region() implementation
@ 2023-07-27  2:02 Yury Norov
  2023-07-27  2:02 ` [PATCH 1/6] bitmap: fix opencoded bitmap_allocate_region() Yury Norov
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ 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] 13+ messages in thread

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

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-27  2:02 [PATCH 0/6] bitmap: cleanup bitmap_*_region() implementation Yury Norov
2023-07-27  2:02 ` [PATCH 1/6] bitmap: fix opencoded bitmap_allocate_region() Yury Norov
2023-07-27 10:04   ` Andy Shevchenko
2023-07-27  2:02 ` [PATCH 2/6] bitmap: replace _reg_op(REG_OP_ALLOC) with bitmap_set() Yury Norov
2023-07-27  2:02 ` [PATCH 3/6] bitmap: replace _reg_op(REG_OP_RELEASE) with bitmap_clear() Yury Norov
2023-07-27  2:02 ` [PATCH 4/6] bitmap: replace _reg_op(REG_OP_ISFREE) with find_next_bit() Yury Norov
2023-07-27 10:05   ` Andy Shevchenko
2023-07-27  2:02 ` [PATCH 5/6] bitmap: drop _reg_op() function Yury Norov
2023-07-27  2:02 ` [PATCH 6/6] bitmap: move bitmap_*_region functions to bitmap.h Yury Norov
2023-07-27  5:09   ` kernel test robot
2023-07-27  5:20   ` kernel test robot
2023-07-27 10:06   ` Andy Shevchenko
2023-07-27 14:39     ` Yury Norov

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