diff options
author | KAMEZAWA Hiroyuki <[email protected]> | 2012-03-21 16:34:20 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-03-21 17:55:01 -0700 |
commit | 0e79dedde951e981612ed4e6d74873d61d2a113b (patch) | |
tree | eb759b4516068a39bc30a2e1758f0743a9c68762 /tools/perf/scripts/python/sctop.py | |
parent | 1f2b71f41ee81735c25ef326da9a0610d640abc2 (diff) |
memcg: remove unnecessary thp check in page stat accounting
Commit e94c8a9cbce1 ("memcg: make mem_cgroup_split_huge_fixup() more
efficient") removed move_lock_page_cgroup(). So we do not have to check
PageTransHuge in mem_cgroup_update_page_stat() and fallback into the
locked accounting because both move_account() and thp split are done
with compound_lock so they cannot race.
The race between update vs. move is protected by mem_cgroup_stealed.
PageTransHuge pages shouldn't appear in this code path currently because
we are tracking only file pages at the moment but later we are planning
to track also other pages (e.g. mlocked ones).
Signed-off-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Reviewed-by: Acked-by: Michal Hocko <[email protected]>
Cc: David Rientjes <[email protected]>
Acked-by: Ying Han<[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions