aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki <[email protected]>2012-01-12 17:18:58 -0800
committerLinus Torvalds <[email protected]>2012-01-12 20:13:07 -0800
commit4e5f01c2b9b94321992acb09c35d34f5ee5bb274 (patch)
tree4e6ac9d29539dc26468fe2630d0e64cd022b1155 /tools/perf/scripts/python/check-perf-trace.py
parent36b62ad539498d00c2d280a151abad5f7630fa73 (diff)
memcg: clear pc->mem_cgroup if necessary.
This is a preparation before removing a flag PCG_ACCT_LRU in page_cgroup and reducing atomic ops/complexity in memcg LRU handling. In some cases, pages are added to lru before charge to memcg and pages are not classfied to memory cgroup at lru addtion. Now, the lru where the page should be added is determined a bit in page_cgroup->flags and pc->mem_cgroup. I'd like to remove the check of flag. To handle the case pc->mem_cgroup may contain stale pointers if pages are added to LRU before classification. This patch resets pc->mem_cgroup to root_mem_cgroup before lru additions. [[email protected]: fix CONFIG_CGROUP_MEM_CONT=n build] [[email protected]: fix CONFIG_CGROUP_MEM_RES_CTLR=y CONFIG_CGROUP_MEM_RES_CTLR_SWAP=n build] [[email protected]: ksm.c needs memcontrol.h, per Michal] [[email protected]: stop oops in mem_cgroup_reset_owner()] [[email protected]: fix page migration to reset_owner] Signed-off-by: KAMEZAWA Hiroyuki <[email protected]> Cc: Miklos Szeredi <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Ying Han <[email protected]> Signed-off-by: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions