Re: [PATCH V6 3/5] sbitmap: introduce __sbitmap_for_each_set()

From: Omar Sandoval
Date: Tue Oct 10 2017 - 14:15:39 EST


On Mon, Oct 09, 2017 at 07:24:22PM +0800, Ming Lei wrote:
> We need to iterate ctx starting from any ctx in round robin
> way, so introduce this helper.
>
> Cc: Omar Sandoval <osandov@xxxxxx>

Reviewed-by: Omar Sandoval <osandov@xxxxxx>

> Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx>
> ---
> include/linux/sbitmap.h | 64 ++++++++++++++++++++++++++++++++++++-------------
> 1 file changed, 47 insertions(+), 17 deletions(-)