[0/6] bitmap: remove _reg_op()

Message ID 20221028014834.572819-1-yury.norov@gmail.com
Headers
Series bitmap: remove _reg_op() |

Message

Yury Norov Oct. 28, 2022, 1:48 a.m. UTC
  _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(-)
  

Comments

Yury Norov Nov. 3, 2022, 2:09 a.m. UTC | #1
Any comments guys?

On Thu, Oct 27, 2022 at 06:48:28PM -0700, Yury Norov wrote:
> _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