]> 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>
Wed, 11 May 2022 14:46:53 +0000 (10:46 -0400)
commit799a6ab53e0446b5f46db97b40b66e38fc40156e
tree70571685235b62688f74e0f77c14e850d9f2edf6
parent9f9fbd48d01ea341aed0e20fd6b4bcfeb44150fa
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