[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zc_YiSDsmdv-2Rcm@casper.infradead.org>
Date: Fri, 16 Feb 2024 21:50:01 +0000
From: Matthew Wilcox <willy@...radead.org>
To: Sidhartha Kumar <sidhartha.kumar@...cle.com>
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
akpm@...ux-foundation.org, apopple@...dia.com
Subject: Re: [PATCH v2 1/6] mm/migrate: introduce migrate_pfn_to_folio()
On Fri, Feb 16, 2024 at 01:13:15PM -0800, Sidhartha Kumar wrote:
> +static inline struct folio *migrate_pfn_to_folio(unsigned long mpfn)
> +{
> + return page_folio(migrate_pfn_to_page(mpfn));
umm, no.
struct page *page = migrate_pfn_to_page(mpfn);
if (page)
return page_folio(page);
return NULL;
Powered by blists - more mailing lists