diff options
| author | Vlastimil Babka <[email protected]> | 2023-03-09 12:12:54 +0100 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-04-05 19:42:49 -0700 |
| commit | 9e8a39d2a9772aed7b97b58961e70701bd1d5899 (patch) | |
| tree | a8bf62ba2d9a6090ad0effce9a367fedb20b13fc /tools/perf/scripts/python | |
| parent | 5cd70b96debbce9182e903cc6f4ed261ae55fa8b (diff) | |
mm/mmap/vma_merge: set mid to NULL if not applicable
There are several places where we test if 'mid' is really the area NNNN in
the diagram and the tests have two variants and are non-obvious to follow.
Instead, set 'mid' to NULL up-front if it's not the NNNN area, and
simplify the tests.
Also update the description in comment accordingly.
[[email protected]: adjust/add comments as suggested by Lorenzo]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Vlastimil Babka <[email protected]>
Reviewed-by: Liam R. Howlett <[email protected]>
Cc: Lorenzo Stoakes <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions