]> 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>
Mon, 14 Mar 2022 18:49:48 +0000 (14:49 -0400)
commit39f33044c09c6bdd6214a15469808d8348953449
tree28f0565a47136e1baf6634240a1d79c11c27f7f5
parent1bc45b814dced2b5a95d29335829b1b746b6e034
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 tree to hold
the vmas to remove.

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

Drop linked list update from __insert_vm_struct().

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