]> 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>
Thu, 14 Apr 2022 06:07:15 +0000 (23:07 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 26 Apr 2022 14:36:34 +0000 (10:36 -0400)
commit70e3b01202e1fead156638d6eddd49e7b210fa72
tree54c2bb956dc3166a9fad1e720a3e15e245d5b0fa
parent2f575ce25426a6a6afc0188078f68b3b1047f0a9
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