[PATCH v1 4/9] mm/memory: Add tree limit to free_pgtables()

Liam R. Howlett Liam.Howlett at oracle.com
Tue Jan 13 11:19:26 PST 2026


* David Hildenbrand <david at redhat.com> [250911 05:24]:
> > +/*
> > + * free_pgtables() - Free a range of page tables
> > + * @tlb: The mmu gather
> > + * @mas: The maple state
> > + * @vma: The first vma
> > + * @floor: The lowest page table address
> > + * @ceiling: The highest page table address
> > + * @tree_max: The highest tree search address
> > + * @mm_wr_locked: boolean indicating if the mm is write locked
> 
> I'm sure there is a good reason why we don't call this stuff here
> 
> floor -> start
> ceiling -> end
> tree_max -> tree_end

It may not be the tree end.  The floor and ceiling names were here
before I arrived.  I think the floor and ceiling comes from the arch
definition part: USER_PGTABLES_CEILING, for example.



More information about the maple-tree mailing list