diff options
author | Liam R. Howlett <Liam.Howlett@Oracle.com> | 2022-09-06 22:48:49 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-09-27 05:46:16 +0300 |
commit | 3b0e81a1cdc9afbddb0543d08e38edb4e33c4baf (patch) | |
tree | 3b5e3728c5430e64d1d606e72289c09d15556aa4 /drivers/xen/privcmd.c | |
parent | 524e00b36e8c547f5582eef3fb645a8d9fc5e3df (diff) | |
download | linux-3b0e81a1cdc9afbddb0543d08e38edb4e33c4baf.tar.xz |
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.
Link: https://lkml.kernel.org/r/20220906194824.2110408-19-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Tested-by: Yu Zhao <yuzhao@google.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Cc: SeongJae Park <sj@kernel.org>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/xen/privcmd.c')
0 files changed, 0 insertions, 0 deletions