]> git.ipfire.org Git - thirdparty/linux.git/commit
arm64: mm: Tidy up force_pte_mapping()
authorRyan Roberts <ryan.roberts@arm.com>
Thu, 6 Nov 2025 16:09:43 +0000 (16:09 +0000)
committerWill Deacon <will@kernel.org>
Fri, 7 Nov 2025 14:43:15 +0000 (14:43 +0000)
commit53357f14f924a06cced46069755bb10c2a6891c1
treeea8f4b74601542cfa2db6ed76a432eecd1117603
parent40a292f701474f7c21b27911677485efa233e94e
arm64: mm: Tidy up force_pte_mapping()

Tidy up the implementation of force_pte_mapping() to make it easier to
read and introduce the split_leaf_mapping_possible() helper to reduce
code duplication in split_kernel_leaf_mapping() and
arch_kfence_init_pool().

Suggested-by: David Hildenbrand (Red Hat) <david@kernel.org>
Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
Reviewed-by: David Hildenbrand (Red Hat) <david@kernel.org>
Reviewed-by: Yang Shi <yang@os.amperecomputing.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/mm/mmu.c