lkml.org 
[lkml]   [2023]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 8/8] bitmap: move bitmap_*_region() functions to bitmap.h
> +/**
> + * 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.

\
 
 \ /
  Last update: 2023-08-29 12:10    [W:3.401 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site