diff options
| author | Johannes Weiner <[email protected]> | 2023-05-19 14:39:57 +0200 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-06-09 16:25:36 -0700 |
| commit | e8606320e9af9774fd879e71c940fc9e5fd9b901 (patch) | |
| tree | 5fdc85f762607eb3f0d84ebbc53bfcadef985c45 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 511a69b27fe6c2d7312789bd9e2e40b00e3903ef (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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions