]> 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>
Thu, 28 Apr 2022 15:18:01 +0000 (11:18 -0400)
commitef997fbd234b14fc954ab1eda08e6cb00fe88f11
treed74aee5e65a04f118c347ba3700b6bd04a88857c
parent62651993cbcc1c266e3af777a75d12cb4204e52e
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