]> 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>
Tue, 15 Nov 2022 17:00:59 +0000 (12:00 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 13 Dec 2022 21:03:39 +0000 (16:03 -0500)
commitd5b4210d8c17fd116f493bd06016648e79e83ae3
treeb7d244aa94a2679992b2bdc04c49d20b338c3d40
parentc0b293b38bb29b83372128b61dea61ae30d9c42c
mm: Change munmap splitting order and move_vma()

Splitting can be more efficient when the order is not of concern.
Change do_vmi_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.  Transition to using vma
iterator to look up the prev and/or next vma after munmap.

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