]> 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>
Thu, 16 Dec 2021 03:01:33 +0000 (22:01 -0500)
commite7cfa6f27eb6d6f93ddaf3c745007b2203e39f33
treea80b78555c246b70ec1c46f7a9e36fa912986401
parent9d7b7e84a9ec217ccc00722ca5e5dfc2d9dcc696
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