]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: Change munmap splitting order and move_vma()
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 30 Mar 2022 17:35:49 +0000 (13:35 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Mon, 15 Aug 2022 14:46:43 +0000 (10:46 -0400)
commit4d9c0fc80323a531d721f3374021975d986e204c
treeed66509b44713c44d315aa0d8d048250efdb8943
parent735ba2982a43beeda995f436729cbfcb023ed009
mm: Change munmap splitting order and move_vma()

Splitting can be more efficient when done in the reverse order to
minimize VMA walking.  Change do_mas_align_munmap() to reduce walking of
the tree during split operations.

move_vma() must also be altered to remove the dependency of keeping the
original VMA as the active part of the split.  Look up the new VMA or
two if necessary.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
mm/mmap.c
mm/mremap.c