diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2019-11-30 17:55:43 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-12-01 12:59:07 -0800 |
commit | d2af339706be318dadcbe14c8935426ff401d7b1 (patch) | |
tree | 4988f47e36d496c23d20cf88070dbdba350e89c1 /lib/irq_poll.c | |
parent | b5ead35e7e1d3434ce436dfcb2af32820ce54589 (diff) | |
download | linux-d2af339706be318dadcbe14c8935426ff401d7b1.tar.bz2 |
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/20191022144803.302233-6-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Roman Gushchin <guro@fb.com>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/irq_poll.c')
0 files changed, 0 insertions, 0 deletions