]> 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>
Mon, 28 Nov 2022 21:00:50 +0000 (16:00 -0500)
commit79d52c40e5d0b22cd254df16ea95e3867f143575
treee78cbed548e6c8c40c401c5e5eca2c3a939987c3
parentf22fa135c550ef166128ac095a26fc322c6873ac
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