[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAH8bW9X4HGNDW9xY1zA8d0O0ty7kh_zcOKBDu88FL8uWEFAkA@mail.gmail.com>
Date: Thu, 17 Feb 2022 08:55:47 -0800
From: Yury Norov <yury.norov@...il.com>
To: Ulf Hansson <ulf.hansson@...aro.org>
Cc: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Rasmus Villemoes <linux@...musvillemoes.dk>,
Andrew Morton <akpm@...ux-foundation.org>,
Michał Mirosław <mirq-linux@...e.qmqm.pl>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Peter Zijlstra <peterz@...radead.org>,
David Laight <David.Laight@...lab.com>,
Joe Perches <joe@...ches.com>, Dennis Zhou <dennis@...nel.org>,
Emil Renner Berthing <kernel@...il.dk>,
Nicholas Piggin <npiggin@...il.com>,
Matti Vaittinen <matti.vaittinen@...rohmeurope.com>,
Alexey Klimov <aklimov@...hat.com>,
linux-kernel@...r.kernel.org,
Maxim Levitsky <maximlevitsky@...il.com>,
Alex Dubov <oakad@...oo.com>, Jens Axboe <axboe@...nel.dk>,
Luis Chamberlain <mcgrof@...nel.org>,
Colin Ian King <colin.king@...el.com>,
Arnd Bergmann <arnd@...db.de>,
Shubhankar Kuranagatti <shubhankarvk@...il.com>,
linux-mmc@...r.kernel.org,
Shubhankar Kuranagatti <shubhankar.vk@...il.com>
Subject: Re: [PATCH 29/49] memstick: replace bitmap_weight with
bitmap_weight_eq where appropriate
On Thu, Feb 17, 2022 at 7:39 AM Ulf Hansson <ulf.hansson@...aro.org> wrote:
>
> On Fri, 11 Feb 2022 at 00:55, Yury Norov <yury.norov@...il.com> wrote:
> >
> > msb_validate_used_block_bitmap() calls bitmap_weight() to compare the
> > weight of bitmap with a given number. We can do it more efficiently with
> > bitmap_weight_eq because conditional bitmap_weight may stop traversing the
> > bitmap earlier, as soon as condition is (or can't be) met.
> >
> > Signed-off-by: Yury Norov <yury.norov@...il.com>
> > Acked-by: Ulf Hansson <ulf.hansson@...aro.org>
> > Acked-by: Shubhankar Kuranagatti <shubhankar.vk@...il.com>
>
> Applied for next, thanks!
Hi Ulf,
This patch depends on patch 26/49 "bitmap: add bitmap_weight_{cmp, eq,
gt, ge, lt, le} functions"
from this series. Can you make sure you applied them together? Or I can
apply it later.
Thanks,
Yury
Powered by blists - more mailing lists