aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/task-analyzer-record
diff options
context:
space:
mode:
authorJohannes Weiner <[email protected]>2023-05-19 14:39:57 +0200
committerAndrew Morton <[email protected]>2023-06-09 16:25:36 -0700
commite8606320e9af9774fd879e71c940fc9e5fd9b901 (patch)
tree5fdc85f762607eb3f0d84ebbc53bfcadef985c45 /tools/perf/scripts/python/bin/task-analyzer-record
parent511a69b27fe6c2d7312789bd9e2e40b00e3903ef (diff)
mm: compaction: refactor __compaction_suitable()
__compaction_suitable() is supposed to check for available migration targets. However, it also checks whether the operation was requested via /proc/sys/vm/compact_memory, and whether the original allocation request can already succeed. These don't apply to all callsites. Move the checks out to the callers, so that later patches can deal with them one by one. No functional change intended. [[email protected]: fix comment, per Vlastimil] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Johannes Weiner <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/task-analyzer-record')
0 files changed, 0 insertions, 0 deletions