Re: [PATCH v4 8/8] bitmap: move bitmap_*_region() functions to bitmap.h

From: Yury Norov
Date: Tue Aug 29 2023 - 06:10:10 EST


> +/**
> + * bitmap_release_region - release allocated bitmap region
> + * @bitmap: array of unsigned longs corresponding to the bitmap
> + * @pos: beginning of bit region to release
> + * @order: region size (log base 2 of number of bits) to release
> + *
> + * This is the complement to __bitmap_find_free_region() and releases
> + * the found region (by clearing it in the bitmap).
> + */
> +static inline void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order)
> +{
> + bitmap_clear(bitmap, pos, pos + BIT(order));
> +}

This is a leftover after wrong rebase from previous buggy version. It
should be:

bitmap_clear(bitmap, pos, BIT(order));

Please igonre the patch, I'll resend it shourtly.

Sorry for noise.