]> 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>
Mon, 6 Sep 2021 03:31:15 +0000 (23:31 -0400)
commit0b6c487acdd2c1054a64c7c04746f6aa2ebd642a
treeb802e052cfcfab30b0eb6882e289e4c58c17dcb4
parent6323b463b2cf0dcc2136cc403e2d6dc30de63768
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