[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Yrhnmi8zuALkAKa3@kernel.org>
Date: Sun, 26 Jun 2022 17:05:14 +0300
From: Mike Rapoport <rppt@...nel.org>
To: Jinyu Tang <tjytimi@....com>
Cc: akpm@...ux-foundation.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] memblock: avoid some repeat when add new range
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@....com>
Applied to memblock/for-kernelci with minor changes to comment and
changelog text.
Thanks,
Mike.
Powered by blists - more mailing lists