]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: add merging after mremap resize
authorJakub Matěna <matenajakub@gmail.com>
Fri, 3 Jun 2022 14:57:19 +0000 (16:57 +0200)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 3 Aug 2022 18:17:09 +0000 (14:17 -0400)
commit813ae8a19fea828bc5d9e5338b1579795d9eee3c
treee7abe08cf809e6faeb4f3f7c26c5912a8c7b8188
parent0f5d9d75c1fb106cba04b57ef0246c9a49c12ec8
mm: add merging after mremap resize

When mremap call results in expansion, it might be possible to merge the
VMA with the next VMA which might become adjacent.  This patch adds
vma_merge call after the expansion is done to try and merge.

Link: https://lkml.kernel.org/r/20220603145719.1012094-3-matenajakub@gmail.com
Signed-off-by: Jakub Matěna <matenajakub@gmail.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Hugh Dickins <hughd@google.com>
Cc: "Kirill A . Shutemov" <kirill@shutemov.name>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mremap.c
tools/testing/selftests/vm/mremap_test.c