[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZMJBF8rEKCSpij+D@smile.fi.intel.com>
Date: Thu, 27 Jul 2023 13:04:07 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Yury Norov <yury.norov@...il.com>
Cc: linux-kernel@...r.kernel.org,
Rasmus Villemoes <linux@...musvillemoes.dk>
Subject: Re: [PATCH 1/6] bitmap: fix opencoded bitmap_allocate_region()
On Wed, Jul 26, 2023 at 07:02:02PM -0700, Yury Norov wrote:
> bitmap_find_region() opencodes bitmap_allocate_region(). Fix it.
...
> + for (pos = 0 ; (end = pos + (1U << order)) <= bits; pos = end)
In the other patch you use BIT(order), why not here?
> + if (!bitmap_allocate_region(bitmap, pos, order))
> + return pos;
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists