Re: [PATCH v2 1/1] mm/huge_memory: simplify pgtable deposit detection
From: Baolin Wang
Date: Fri Sep 18 2026 - 04:34:48 EST
On 9/17/26 1:40 PM, Lance Yang wrote:
Whether a PMD has a deposited PTE page table only depends on whether the
architecture requires deposits or the VMA is anonymous.
Implement this rule directly in vma_has_deposited_pgtable(), avoiding
mistaking a non-anonymous raw PFN PMD for one with a deposit and attempting
to withdraw a page table that was never deposited.
Suggested-by: David Hildenbrand <david@xxxxxxxxxx>
Signed-off-by: Lance Yang <lance.yang@xxxxxxxxx>
---
LGTM.
Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>