aboutsummaryrefslogtreecommitdiffstats
path: root/mm/debug_vm_pgtable.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2025-04-02 18:17:02 +0000
committerAndrew Morton <[email protected]>2025-05-12 00:48:03 +0000
commite06fa168c342c8b937cd72c89582e6af008b204b (patch)
tree987dbac2ad20f4237d7d02ae1f266627dfb7075d /mm/debug_vm_pgtable.c
parentmm: add folio_mk_pte() (diff)
downloadkernel-e06fa168c342c8b937cd72c89582e6af008b204b.tar.gz
kernel-e06fa168c342c8b937cd72c89582e6af008b204b.zip
hugetlb: simplify make_huge_pte()
mk_huge_pte() is a bad API. Despite its name, it creates a normal PTE which is later transformed into a huge PTE by arch_make_huge_pte(). So replace the page argument with a folio argument and call folio_mk_pte() instead. Then, because we now know this is a regular PTE rather than a huge one, use pte_mkdirty() instead of huge_pte_mkdirty() (and similar functions). Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Cc: Zi Yan <[email protected]> Cc: Muchun Song <[email protected]> Cc: Alexander Gordeev <[email protected]> Cc: Andreas Larsson <[email protected]> Cc: Anton Ivanov <[email protected]> Cc: Dave Hansen <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Johannes Berg <[email protected]> Cc: Richard Weinberger <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/debug_vm_pgtable.c')
0 files changed, 0 insertions, 0 deletions