]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap: Use advanced maple tree API for mmap_region()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 10 Nov 2020 18:37:40 +0000 (13:37 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 22 Oct 2021 00:27:28 +0000 (20:27 -0400)
commitf0bfc540b1c1bbd59e50e82cc6dc4b29ba574872
treefdbb4da077e4820360b0e5b407f417380b5f59ad
parent710a8704221ffc00f0b7d876bdc81bc9626e8fbd
mm/mmap: Use advanced maple tree API for mmap_region()

Changing mmap_region() to use the maple tree state and the advanced
maple tree interface allows for a lot less tree walking.

This change removes the last caller of munmap_vma_range(), so drop this
unused function.

Add vma_expand() to expand a VMA if possible by doing the necessary
hugepage check, uprobe_munmap of files, dcache flush, modifications then
undoing the detaches, etc.

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