Skip to content

Commit 17f8385

Browse files
VMoolachenhuacai
authored andcommitted
LoongArch: Remove __GFP_HIGHMEM masking in pud_alloc_one()
Remove the unnecessary __GFP_HIGHMEM masking in pud_alloc_one(), which was introduced with commit 3827397 ("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>
1 parent a073d63 commit 17f8385

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/loongarch/include/asm/pgalloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)
8888
static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long address)
8989
{
9090
pud_t *pud;
91-
struct ptdesc *ptdesc = pagetable_alloc(GFP_KERNEL & ~__GFP_HIGHMEM, 0);
91+
struct ptdesc *ptdesc = pagetable_alloc(GFP_KERNEL, 0);
9292

9393
if (!ptdesc)
9494
return NULL;

0 commit comments

Comments
 (0)