Re: [PATCH v8 06/14] mm: debug_vm_pgtable: use pgtable_has_pmd_leaves()

From: Luiz Capitulino

Date: Sat Oct 03 2026 - 10:56:27 EST




On 10/2/26 3:19 PM, David Hildenbrand (Arm) wrote:
On 9/18/26 03:45, Luiz Capitulino wrote:
debug_vm_pgtable calls has_transparent_hugepage() in multiple places to
check if PMD-sized pages are supported, use pgtable_has_pmd_leaves()
instead.

Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>
Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>
Signed-off-by: Luiz Capitulino <luizcap@xxxxxxxxxx>
---

Best to mention in the description that there is no effective change as all
calls to has_transparent_hugepage() are predicated by CONFIG_TRANSPARENT_HUGEPAGE.

OK, the new changelog reads:

"""
debug_vm_pgtable calls has_transparent_hugepage() in multiple places to
check if PMD-sized pages are supported, use pgtable_has_pmd_leaves()
instead.

No functional change intended since the call happens under the
CONFIG_TRANSPARENT_HUGEPAGE guard and when CONFIG_TRANSPARENT_HUGEPAGE=y
both functions return the same value.
"""


Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>