[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zl2_N9wHOh9ACQpt@casper.infradead.org>
Date: Mon, 3 Jun 2024 14:03:51 +0100
From: Matthew Wilcox <willy@...radead.org>
To: Yajun Deng <yajun.deng@...ux.dev>
Cc: akpm@...ux-foundation.org, rppt@...nel.org, hannes@...xchg.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm: pass the pfn to set_pageblock_migratetype
On Mon, Jun 03, 2024 at 08:41:00PM +0800, Yajun Deng wrote:
> It is necessary to calculate the pfn in the set_pageblock_migratetype(),
> but most of the callers already have the pfn.
>
> To reduce the calculation, pass the pfn to set_pageblock_migratetype().
It's not exactly a hard computation though. Have you done any
measurements that show this patch is an improvement?
Powered by blists - more mailing lists