[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5fdb6952-ebfd-4a12-b372-04229763579b@arm.com>
Date: Mon, 10 Nov 2025 18:07:41 +0100
From: Kevin Brodsky <kevin.brodsky@....com>
To: Huacai Chen <chenhuacai@...ngson.cn>, Huacai Chen
<chenhuacai@...nel.org>, Andrew Morton <akpm@...ux-foundation.org>
Cc: Arnd Bergmann <arnd@...db.de>, Vishal Moola <vishal.moola@...il.com>,
Jan Kara <jack@...e.cz>, linux-mm@...ck.org, linux-arch@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH V2] mm: Remove unnecessary __GFP_HIGHMEM in
__p*d_alloc_one_*()
On 09/11/2025 02:18, Huacai Chen wrote:
> __{pgd,p4d,pud,pmd,pte}_alloc_one_*() always allocate pages with GFP
> flag GFP_PGTABLE_KERNEL/GFP_PGTABLE_USER. These two macros are defined
> as follows:
>
> #define GFP_PGTABLE_KERNEL (GFP_KERNEL | __GFP_ZERO)
> #define GFP_PGTABLE_USER (GFP_PGTABLE_KERNEL | __GFP_ACCOUNT)
>
> There is no __GFP_HIGHMEM in them, so we needn't to clear __GFP_HIGHMEM
Nit: "needn't clear" (or simply "don't need to")
> explicitly.
>
> Signed-off-by: Huacai Chen <chenhuacai@...ngson.cn>
Reviewed-by: Kevin Brodsky <kevin.brodsky@....com>
- Kevin
Powered by blists - more mailing lists