Re: [PATCH v2 7/9] mm/huge_memory: deduplicate zap deposited table call
From: Kiryl Shutsemau
Date: Thu Mar 19 2026 - 13:16:16 EST
On Thu, Mar 19, 2026 at 01:00:13PM +0000, Lorenzo Stoakes (Oracle) wrote:
> diff --git a/mm/huge_memory.c b/mm/huge_memory.c
> index 499c31bf8f83..c4e00c645e58 100644
> --- a/mm/huge_memory.c
> +++ b/mm/huge_memory.c
> @@ -2431,6 +2431,7 @@ bool zap_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma,
> pmd_t *pmd, unsigned long addr)
> {
> struct folio *folio = NULL;
> + bool needs_deposit = false;
I think 'has_deposit' is a better name here.
And initialize it to arch_needs_pgtable_deposit().
--
Kiryl Shutsemau / Kirill A. Shutemov