Commit 5301f9b4 authored by Zhenhua Huang's avatar Zhenhua Huang Committed by Treehugger Robot
Browse files

UPSTREAM: arm64: mm: Test for pmd_sect() in vmemmap_check_pmd()



Commit 2045a3b8 ("mm/sparse-vmemmap: generalise vmemmap_populate_hugepages()")
introduces the vmemmap_check_pmd() while does not verify if the entry is a
section mapping, as is already done for Loongarch & X86.
The update includes a check for pmd_sect(). Only if pmd_sect() returns true,
further vmemmap population for the addr is skipped.

Change-Id: If5dd9a41d83286532e3ba4a8cea33e374d22b8cc
Signed-off-by: default avatarZhenhua Huang <quic_zhenhuah@quicinc.com>
Reviewed-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20250102074047.674156-1-quic_zhenhuah@quicinc.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
(cherry picked from commit 9ab2601d)
Bug: 395030770
Signed-off-by: default avatarZhenhua Huang <quic_zhenhuah@quicinc.com>
parent 17fcda65
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment