]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcontrol: drop superfluous entry in the per-memcg stats array
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 3 Feb 2016 00:57:38 +0000 (16:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Feb 2016 16:28:43 +0000 (08:28 -0800)
commit8ff0e0f7cdc7238bb12735538d82779430625328
treebbd79ec9853359d1687750f8c3b2db908b5b0d42
parent0aa03551992ce3687169aa39bfb039a480f387a7
mm: memcontrol: drop superfluous entry in the per-memcg stats array

MEM_CGROUP_STAT_NSTATS is just a delimiter for cgroup1 statistics, not
an actual array entry.  Reuse it for the first cgroup2 stat entry, like
in the event array.

Fixes: 5b6d9bf37a5f ("mm: memcontrol: add "sock" to cgroup2 memory.stat")
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vladimir Davydov <vdavydov@virtuozzo.com>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memcontrol.h