]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: clean up memcg->nodeinfo
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 19 Jun 2013 00:06:55 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:26:50 +0000 (17:26 +1000)
commita03511d713ded78be2a07aceea4565c60148da8a
tree1faee0ac6004c24fe59bbcfcacdb0b9ae5ee2ab2
parent9e99b67df1c115471f0e5409f978a95245b4ad38
memcg: clean up memcg->nodeinfo

Remove struct mem_cgroup_lru_info and fold its single member, the variably
sized nodeinfo[0], directly into struct mem_cgroup.  This should make it
more obvious why it has to be the last member there.

Also move the comment that's above that special last member below it, so
it is more visible to somebody that considers appending to the struct
mem_cgroup.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: David Rientjes <rientjes@google.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Glauber Costa <glommer@openvz.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c