]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: mm: Test for pmd_sect() in vmemmap_check_pmd()
authorZhenhua Huang <quic_zhenhuah@quicinc.com>
Thu, 2 Jan 2025 07:40:47 +0000 (15:40 +0800)
committerWill Deacon <will@kernel.org>
Tue, 7 Jan 2025 16:51:42 +0000 (16:51 +0000)
commit9ab2601dc4c145279dc518bca00349dc1abe77ed
tree73162f64424d0f4ba28b6d02e125a13f93b13db5
parentfe2169f556a1dd06e81ecab4ec25ce19f3f99cbd
arm64: mm: Test for pmd_sect() in vmemmap_check_pmd()

Commit 2045a3b8911b ("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.

Signed-off-by: Zhenhua Huang <quic_zhenhuah@quicinc.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20250102074047.674156-1-quic_zhenhuah@quicinc.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/mm/mmu.c