diff options
author | Johannes Weiner <[email protected]> | 2019-11-30 17:55:31 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-12-01 12:59:06 -0800 |
commit | de3b01506ea494b46aab05dc143b69adbf2aaa9d (patch) | |
tree | 2a616d9b2fe8a989cd1030a4112544cf071db90c /tools/perf/scripts/python/stackcollapse.py | |
parent | cb16556d913f2b12feffc8a56fe184df1e76d6d5 (diff) |
mm: vmscan: simplify lruvec_lru_size()
Patch series "mm: vmscan: cgroup-related cleanups".
Here are 8 patches that clean up the reclaim code's interaction with
cgroups a bit. They're not supposed to change any behavior, just make
the implementation easier to understand and work with.
This patch (of 8):
This function currently takes the node or lruvec size and subtracts the
zones that are excluded by the classzone index of the allocation. It uses
four different types of counters to do this.
Just add up the eligible zones.
[[email protected]: fix an undefined behavior for zone id]
Link: http://lkml.kernel.org/r/[email protected]
[[email protected]: deal with the MAX_NR_ZONES special case. per Qian Cai]
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Johannes Weiner <[email protected]>
Reviewed-by: Roman Gushchin <[email protected]>
Reviewed-by: Shakeel Butt <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions