[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <122e0d4d-d9b2-a81e-b8ce-fa8636eabe1b@kernel.dk>
Date: Wed, 1 Jul 2020 10:53:28 -0600
From: Jens Axboe <axboe@...nel.dk>
To: John Garry <john.garry@...wei.com>
Cc: bvanassche@....org, osandov@...com, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org, hare@...e.com
Subject: Re: [PATCH] sbitmap: Consider cleared bits in sbitmap_bitmap_show()
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
Powered by blists - more mailing lists