]> www.infradead.org Git - users/willy/pagecache.git/commit
mm: Remove mk_huge_pte()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 19 Feb 2025 04:43:07 +0000 (23:43 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 25 Feb 2025 19:47:20 +0000 (14:47 -0500)
commit83494643a33d2161cff4797feead4614d5a01237
treebf14357e29cd215e19715f24da359cf9131412ba
parent8171e3b2a86e09b32dd98d4c8add1e1042cf0b02
mm: Remove mk_huge_pte()

The only remaining user of mk_huge_pte() is the debug code, so remove
the API and replace its use with pfn_pte() which lets us remove the
conversion to a page first.  We should always call arch_make_huge_pte()
to turn this PTE into a huge PTE before operating on it with
huge_pte_mkdirty() etc.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/asm-generic/hugetlb.h
mm/debug_vm_pgtable.c