]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
LoongArch: Remove __GFP_HIGHMEM masking in pud_alloc_one()
authorVishal Moola (Oracle) <vishal.moola@gmail.com>
Sun, 9 Nov 2025 08:02:01 +0000 (16:02 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 10 Nov 2025 00:37:06 +0000 (08:37 +0800)
Remove the unnecessary __GFP_HIGHMEM masking in pud_alloc_one(), which
was introduced with commit 382739797f79ec2 ("loongarch: convert various
functions to use ptdescs"). GFP_KERNEL doesn't contain __GFP_HIGHMEM.

Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/pgalloc.h

index 1c63a9d9a6d35dd6301a1e3c0326e6c32e68de41..08dcc698ec18489c8a8c50e12c389582f541feaf 100644 (file)
@@ -88,7 +88,7 @@ static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)
 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long address)
 {
        pud_t *pud;
-       struct ptdesc *ptdesc = pagetable_alloc(GFP_KERNEL & ~__GFP_HIGHMEM, 0);
+       struct ptdesc *ptdesc = pagetable_alloc(GFP_KERNEL, 0);
 
        if (!ptdesc)
                return NULL;