]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: WIP, trying to avoid splitting is a mess. maple3_do_munmap
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 24 Nov 2020 00:03:58 +0000 (19:03 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 24 Nov 2020 00:03:58 +0000 (19:03 -0500)
commit450171a69527d59c7ea46f2d56dccf06e892d599
treed692d57c6eef9264a2b1feb4d3b0a38133a9461d
parentb501be76075bf3204ef7942161a5160ab1953a26
mm: WIP, trying to avoid splitting is a mess.

If you split this VMA, then it is inserted into the tree.  Instead, we
try to create a dummy VMA and pass that along to handle freeing.  Unfortunately,
the hugetlb cases seem to require the file handle to be correctly processed
in the unmap_single_vma() call path.  There may be memory leaks in the cases
where we are not a hugetlb page, but I didn't see that.

The unfornate part is that we have to insert ourselves into the interval tree
when we try to do more with the VMA.

For now, let's just go back to something that is less of a mess

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
include/linux/maple_tree.h
mm/memory.c
mm/mmap.c