]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
memcg: fix memcg_size() calculation
authorVladimir Davydov <vdavydov@parallels.com>
Thu, 2 Jan 2014 20:58:47 +0000 (12:58 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 2 Jan 2014 22:40:30 +0000 (14:40 -0800)
commit695c60830764945cf61a2cc623eb1392d137223e
tree97f7bbab507ceed1e3716ef2c8f418f7c90c30d1
parent4eb919825e6c3c7fb3630d5621f6d11e98a18b3a
memcg: fix memcg_size() calculation

The mem_cgroup structure contains nr_node_ids pointers to
mem_cgroup_per_node objects, not the objects themselves.

Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Glauber Costa <glommer@openvz.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Balbir Singh <bsingharora@gmail.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c