]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap: Rewrite __do_munmap() to be more maple tree friendly
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 20 Nov 2020 02:59:10 +0000 (21:59 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Sat, 21 Nov 2020 00:57:22 +0000 (19:57 -0500)
commit5cd3c54236e95b702e54021e7b5313dc76c96aad
treec7df5fe12436d2eb2a22581a09dae156818130d7
parent5f252c3fd8ac8e06d7ce0e231e4bdbe0f4336159
mm/mmap: Rewrite __do_munmap() to be more maple tree friendly

Before going full-blown ma_state on __do_munmap(), do better on splits
by avoiding cloning a tmp VMA and just allocate one on the stack to be
discarded.  In the case of a double-adjust of the start and end vma,
then a duplication is unavoidable and handled in the slow path as
before.

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