]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap: Optimize mmap_region() use of maple states
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 2 Mar 2021 15:15:35 +0000 (10:15 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 2 Mar 2021 15:15:35 +0000 (10:15 -0500)
commit78532e9a153013f0baf25d4b2688b35a1ae7547a
tree007ca8bc8e20b0600463321d3fcb3710afe07f81
parent9a4264d546e19389efc87f43b1105e0cea9f30c6
mm/mmap: Optimize mmap_region() use of maple states

Only walk down once after the tree was modified with the munmap call.  Copy mas
to find prev and next.  Only reset mas if the address changed.

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