]> 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>
Tue, 8 Mar 2022 18:19:11 +0000 (13:19 -0500)
commitb8974d8eb1a4dae52487781d097934e8c2bd9b01
tree5f42fa229a7ff62cd59749e50d65e579b6f05436
parent1e9d0196798e530d2639012724627581ec15f81f
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