OSDN Git Service

mm/mmap/vma_merge: initialize mid and next in natural order
authorVlastimil Babka <vbabka@suse.cz>
Thu, 9 Mar 2023 11:12:53 +0000 (12:12 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 6 Apr 2023 02:42:49 +0000 (19:42 -0700)
commit5cd70b96debbce9182e903cc6f4ed261ae55fa8b
treefd2e05af2d2ed3eb0bb6a05176b5cef33afd35fc
parent183b7a60d349abeb3067867c8bdbdd6e0d3b7d86
mm/mmap/vma_merge: initialize mid and next in natural order

It is more intuitive to go from prev to mid and then next.  No functional
change.

Link: https://lkml.kernel.org/r/20230309111258.24079-6-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