summaryrefslogtreecommitdiff
path: root/drivers/virt
diff options
context:
space:
mode:
authorChris Down <chris@chrisdown.name>2019-05-15 01:46:57 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-15 05:52:52 +0300
commit871789d4af807d1e91a6299f12a67e06177ed420 (patch)
treebf1243d96c02a9c6185fc116619dd401490dbd90 /drivers/virt
parentb09e89366e1730ac13088706cec0f1335299eefb (diff)
downloadlinux-871789d4af807d1e91a6299f12a67e06177ed420.tar.xz
mm, memcg: rename ambiguously named memory.stat counters and functions
I spent literally an hour trying to work out why an earlier version of my memory.events aggregation code doesn't work properly, only to find out I was calling memcg->events instead of memcg->memory_events, which is fairly confusing. This naming seems in need of reworking, so make it harder to do the wrong thing by using vmevents instead of events, which makes it more clear that these are vm counters rather than memcg-specific counters. There are also a few other inconsistent names in both the percpu and aggregated structs, so these are all cleaned up to be more coherent and easy to understand. This commit contains code cleanup only: there are no logic changes. [akpm@linux-foundation.org: fix it for preceding changes] Link: http://lkml.kernel.org/r/20190208224319.GA23801@chrisdown.name Signed-off-by: Chris Down <chris@chrisdown.name> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@kernel.org> Cc: Tejun Heo <tj@kernel.org> Cc: Roman Gushchin <guro@fb.com> Cc: Dennis Zhou <dennis@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/virt')
0 files changed, 0 insertions, 0 deletions