diff options
| author | Miaohe Lin <[email protected]> | 2022-04-28 23:15:58 -0700 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-04-28 23:15:58 -0700 |
| commit | d8f653386cb571b46e9ce7d9681d6dc4eae441d6 (patch) | |
| tree | 9de5560fd56af2f5add432a105c2d7c58d6ced8c /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 9096bbe951ddd3f9dc813e73b5bde6d5715d1cdb (diff) | |
mm/memcg: remove unneeded nr_scanned
The local variable nr_scanned is unneeded as mem_cgroup_soft_reclaim
always does *total_scanned += nr_scanned. So we can pass total_scanned
directly to the mem_cgroup_soft_reclaim to simplify the code and save some
cpu cycles of adding nr_scanned to total_scanned.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Miaohe Lin <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Roman Gushchin <[email protected]>
Reviewed-by: Wei Yang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions