]> 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>
Thu, 24 Jun 2021 20:04:21 +0000 (16:04 -0400)
commitb36e0e782c4596ea14f90303660eec0f1be75a0c
tree6f0235f2a8db3b834f7c46b7589f9ffb3cc672c5
parentcc614d04016e9b5962c93f55986ede792fc5cd66
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.

Add vma_mas_link() helper to add a VMA to the linked list and maple tree
until the linked list is removed.

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