Re: [PATCH] sbitmap: Consider cleared bits in sbitmap_bitmap_show()

From: Jens Axboe
Date: Wed Jul 01 2020 - 12:53:35 EST


On 7/1/20 2:06 AM, John Garry wrote:
> sbitmap works by maintaining separate bitmaps of set and cleared bits.
> The set bits are cleared in a batch, to save the burden of continuously
> locking the "word" map to unset.
>
> sbitmap_bitmap_show() only shows the set bits (in "word"), which is not
> too much use, so mask out the cleared bits.

Applied, thanks.

--
Jens Axboe