diff options
| author | Kinsey Ho <[email protected]> | 2024-02-14 06:05:35 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-02-22 10:24:58 -0800 |
| commit | 51973cc9e53899e50e47c1e4c2967c3021cb6257 (patch) | |
| tree | 7daee51fca33a925da89dccbe92481cb23b216a0 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 1ce2292c148043360c49122b1310da7132f1b8f6 (diff) | |
mm/mglru: improve should_run_aging()
scan_control *sc does not need to be passed into should_run_aging(), as it
provides only the reclaim priority. This can be moved to
get_nr_to_scan().
Refactor should_run_aging() and get_nr_to_scan() to improve code
readability. No functional changes.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Kinsey Ho <[email protected]>
Cc: Aneesh Kumar K.V <[email protected]>
Cc: Donet Tom <[email protected]>
Cc: Yu Zhao <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions