]> 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, 26 Nov 2021 19:50:29 +0000 (14:50 -0500)
commitffab31d8768f7589d7b66e90724cf2b181a5bbea
tree64b292ae8afaf40606e8355ca43bb9857c41ac37
parentd8d7f6d6b3be9e2896e965bf0fc9c0b7f8bc230f
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