]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: Change do_mas_align_munmap() allocation behaviour
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 28 Apr 2023 00:05:21 +0000 (20:05 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Mon, 1 May 2023 23:35:05 +0000 (19:35 -0400)
commitf9a68f9e13d3e795e1e0ee57cc9621dfdc6fe095
tree51f7afed41cb5456cbf96460b43a54ac6ec90ddf
parentca1c9012c941ab1520851938d5f695f5a4d23634
mm: Change do_mas_align_munmap() allocation behaviour

munmap does not need to preallocate maple tree nodes.  In fact, it
already does allocate maple tree nodes for the side branch as well as
VMAs, so it is safe to do so for the tree.  Using the in-tree allocation
allows for a higher chance of better calculation of nodes needed, and
performs better.

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