]> www.infradead.org Git - users/willy/pagecache.git/commit
hugetlb: Simplify make_huge_pte()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 19 Feb 2025 04:38:06 +0000 (23:38 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 25 Feb 2025 19:47:20 +0000 (14:47 -0500)
commit8171e3b2a86e09b32dd98d4c8add1e1042cf0b02
treec7cbb7934ac3216c1b8c765abb101d1c10775073
parent358f3ea99788a826a0661a4e65e7e6503b0b5e2c
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).

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