Re: [PATCH v2 09/33] mm/rmap: parameterise anon_vma_interval_tree_*() by anon_vma
From: Zi Yan
Date: Fri Jul 17 2026 - 22:57:03 EST
On Fri Jul 10, 2026 at 4:16 PM EDT, Lorenzo Stoakes wrote:
> Similar to what we did with mapping_rmap_tree*(), let's declare
> anon_vma_interval_tree*() in terms of anon_vma rather than rb_root_cached.
>
> In each case the rb tree referenced is &anon_vma->rb_root, so just pass
> anon_vma and the functions can figure this out themselves.
>
> Also update the VMA userland tests to reflect the change.
>
> No functional change intended.
>
> Reviewed-by: Pedro Falcato <pfalcato@xxxxxxx>
> Signed-off-by: Lorenzo Stoakes <ljs@xxxxxxxxxx>
> ---
> include/linux/mm.h | 11 ++++++-----
> mm/interval_tree.c | 13 +++++++------
> mm/ksm.c | 7 ++-----
> mm/memory-failure.c | 3 +--
> mm/rmap.c | 11 +++++------
> mm/vma.c | 4 ++--
> tools/testing/vma/include/stubs.h | 4 ++--
> 7 files changed, 25 insertions(+), 28 deletions(-)
>
Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>
--
Best Regards,
Yan, Zi