linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v2] memblock: avoid some repeat when add new range
       [not found] <20220615094015.3672-1-tjytimi@163.com>
@ 2022-06-26 14:05 ` Mike Rapoport
  0 siblings, 0 replies; only message in thread
From: Mike Rapoport @ 2022-06-26 14:05 UTC (permalink / raw)
  To: Jinyu Tang; +Cc: akpm, linux-mm, linux-kernel

On Wed, Jun 15, 2022 at 05:40:15PM +0800, Jinyu Tang wrote:
> The worst case is that the new memory range overlaps all existing
> regions,which need type->cnt + 1 free area of struct memblock_region.
> So if type->cnt + 1 + type->cnt is less than type->max,we can insert
> regions directly.And becase of merge operation in the end of function,
> tpye->cnt increase slowly for many cases.So this patch can avoid
> unnecessary repeat for many cases when add new memory range.
> 
> Signed-off-by: Jinyu Tang <tjytimi@163.com>

Applied to memblock/for-kernelci with minor changes to comment and
changelog text.

Thanks,
Mike.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-26 14:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20220615094015.3672-1-tjytimi@163.com>
2022-06-26 14:05 ` [PATCH v2] memblock: avoid some repeat when add new range Mike Rapoport

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).