]> 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>
Fri, 26 Nov 2021 19:50:28 +0000 (14:50 -0500)
commit54492a9e7c411d0f3f5e73f8f1d190908cdd3abe
tree907bb21f32d5927135982107a82fb4e386b04d05
parentf298d1c7f3e2e7813bda323b31077de35a67a3e6
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.

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