]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap/vma_merge: use the proper vma pointer in case 4
authorVlastimil Babka <vbabka@suse.cz>
Thu, 9 Mar 2023 11:12:52 +0000 (12:12 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:26 +0000 (16:02 -0700)
commit836a6905a21afdb67257d0e2ef95d9d1b3d6a2be
treec12c12e2ea8881c1d433909ad0221005cf08d43f
parenta1515af440e353c6f7bc1c805383776b56e2fbd1
mm/mmap/vma_merge: use the proper vma pointer in case 4

Almost all cases now use the 'next' pointer for the vma following the
merged area, and the cases diagram shows it as XXXX.  Case 4 is different
as it uses 'mid' and NNNN, so change it for consistency.  No functional
change.

Link: https://lkml.kernel.org/r/20230309111258.24079-5-vbabka@suse.cz
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Lorenzo Stoakes <lstoakes@gmail.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mmap.c