]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arch/powerpc: Remove mmap linked list from mm/book3s32/tlb
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 4 Jan 2021 19:25:54 +0000 (14:25 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 22 Oct 2021 00:27:29 +0000 (20:27 -0400)
Start using the maple tree

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
arch/powerpc/mm/book3s32/tlb.c

index 19f0ef950d77322d5d0be1ccf18c3820e6b4bcb1..0f08188fe270523c0d4a9a75800044dbfcc21db6 100644 (file)
@@ -81,6 +81,7 @@ EXPORT_SYMBOL(hash__flush_range);
 void hash__flush_tlb_mm(struct mm_struct *mm)
 {
        struct vm_area_struct *mp;
+       MA_STATE(mas, &mm->mm_mt, 0, 0);
 
        /*
         * It is safe to go down the mm's list of vmas when called
@@ -88,7 +89,7 @@ void hash__flush_tlb_mm(struct mm_struct *mm)
         * unmap_region or exit_mmap, but not from vmtruncate on SMP -
         * but it seems dup_mmap is the only SMP case which gets here.
         */
-       for (mp = mm->mmap; mp != NULL; mp = mp->vm_next)
+       mas_for_each(&mas, mp, ULONG_MAX)
                hash__flush_range(mp->vm_mm, mp->vm_start, mp->vm_end);
 }
 EXPORT_SYMBOL(hash__flush_tlb_mm);