]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcontrol: eliminate raw access to stat and event counters
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 1 Feb 2018 00:16:37 +0000 (16:16 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Feb 2018 01:18:36 +0000 (17:18 -0800)
commit45260ad05a3c4d898e291de54cccb6698dc1ff56
tree6ad08f6a8e83971d3ca137c43b67b3de70006225
parent9e69672435c0a4ca856cbdbf9d9ac91c64709ab7
mm: memcontrol: eliminate raw access to stat and event counters

Replace all raw 'this_cpu_' modifications of the stat and event per-cpu
counters with API functions such as mod_memcg_state().

This makes the code easier to read, but is also in preparation for the
next patch, which changes the per-cpu implementation of those counters.

Link: http://lkml.kernel.org/r/20171103153336.24044-1-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memcontrol.h
mm/memcontrol.c