]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: Remove the vma linked list
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 4 Jan 2021 20:10:54 +0000 (15:10 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 16 Dec 2021 03:01:36 +0000 (22:01 -0500)
commit43949fcd9fb6b03aa72ed8ec1204d7306dc30975
treea86c4ff0a4fb7d217d72b50800294efad7a72dda
parent3d5ce545f495f89012f34d8ad71627f292a0e63a
mm: Remove the vma linked list

Replace any vm_next use with vma_find().

Update free_pgtables(), unmap_vmas(), and zap_page_range() to use the
maple tree.

Use the new free_pgtables() and unmap_vmas() in do_mas_align_munmap().
At the same time, alter the loop to be more compact.

Now that free_pgtables() and unmap_vmas() take a maple tree as an
argument, rearrange do_mas_align_munmap() to use the new table to hold
the lock

Remove __vma_link_list() and __vma_unlink_list() as they are exclusively
used to update the linked list

Rework validation of tree as it was depending on the linked list.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
include/linux/mm.h
include/linux/mm_types.h
kernel/fork.c
mm/debug.c
mm/gup.c
mm/internal.h
mm/memory.c
mm/mmap.c
mm/nommu.c
mm/util.c