]> 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>
Tue, 28 Mar 2023 23:25:05 +0000 (16:25 -0700)
commit0f5f8ada78f29aa69172d08a3a6a155da64afc3e
tree2010f96877f1377dade34ca56486fe679d0aae82
parent55d7e1d6a21d4958aa3ac4ef96473020c82d2f89
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