memcg: fix memcg_size() calculation
authorVladimir Davydov <[email protected]>
Thu, 2 Jan 2014 20:58:47 +0000 (12:58 -0800)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Glauber Costa <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Balbir Singh <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memcontrol.c