]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: Fix __vma_adjust() writes for the maple tree
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 2 May 2023 00:27:52 +0000 (20:27 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 2 May 2023 03:00:31 +0000 (23:00 -0400)
commit61b337f6508fb566553f204a69e743524730e860
treec09c4f3ae242c6474ba8770b5b902b67b8f11ecc
parent3f45bc5b9bdfdd30ee2bee4a36cf438604384fc6
mm: Fix __vma_adjust() writes for the maple tree

Only write when necessary to the maple tree.  This should only occur
when the VMA changes.  In the __vma_adjust() case, it is either the vma
when it is expanded, the next vma when the boundary expands into 'vma',
writing the 'insert', or when vma expands/shrinks for shift_arg_pages().

The mas_preallocate() setup should track the intended write to ensure
the correct number of nodes are preallocated for the pending write.

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