]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmap: Change zeroing of maple tree in __vma_adjust()
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Mon, 6 Sep 2021 03:31:15 +0000 (23:31 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 8 Mar 2022 18:19:10 +0000 (13:19 -0500)
commit37c52eebd32d3de19c37d31c32e52e0e662cb61d
tree1bd9220ba2723eb1d3f45768eb87ce608f3c3943
parent2370f89ffa0eae77cb60e0230fed974f838dda50
mmap: Change zeroing of maple tree in __vma_adjust()

Only write to the maple tree if we are not inserting or the insert isn't
going to overwrite the area to clear.  This avoids spanning writes and
node coealescing when unnecessary.

The change requires a custom search for the linked list addition to find
the correct VMA for the prev link.

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