aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJohannes Weiner <[email protected]>2019-11-30 17:55:43 -0800
committerLinus Torvalds <[email protected]>2019-12-01 12:59:07 -0800
commitd2af339706be318dadcbe14c8935426ff401d7b1 (patch)
tree4988f47e36d496c23d20cf88070dbdba350e89c1 /tools/perf/scripts/python/stackcollapse.py
parentb5ead35e7e1d3434ce436dfcb2af32820ce54589 (diff)
mm: vmscan: replace shrink_node() loop with a retry jump
Most of the function body is inside a loop, which imposes an additional indentation and scoping level that makes the code a bit hard to follow and modify. The looping only happens in case of reclaim-compaction, which isn't the common case. So rather than adding yet another function level to the reclaim path and have every reclaim invocation go through a level that only exists for one specific cornercase, use a retry goto. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Johannes Weiner <[email protected]> Reviewed-by: Roman Gushchin <[email protected]> Reviewed-by: Shakeel Butt <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions