mbox series

[0/4] A few cleanup patches for sbitmap

Message ID 20221208220147.3315388-1-shikemeng@huaweicloud.com (mailing list archive)
Headers show
Series A few cleanup patches for sbitmap | expand

Message

Kemeng Shi Dec. 8, 2022, 10:01 p.m. UTC
Hi, this series contain a few cleanup patches to remove unnecessary
check and repeat code in sbitmap. Thanks.

Kemeng Shi (4):
  sbitmap: remove unnecessary calculation of alloc_hint in
    __sbitmap_get_shallow
  sbitmap: remove redundant check in __sbitmap_queue_get_batch
  sbitmap: rewrite sbitmap_find_bit_in_index to reduce repeat code
  sbitmap: add sbitmap_find_bit to remove repeat code in
    __sbitmap_get/__sbitmap_get_shallow

 lib/sbitmap.c | 98 +++++++++++++++++++++++----------------------------
 1 file changed, 45 insertions(+), 53 deletions(-)