]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: clean up memcg->nodeinfo
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 27 Jun 2013 23:52:24 +0000 (09:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:38:05 +0000 (16:38 +1000)
commit21af52da8148b386b7aebdcea0a72da770c3c21a
tree622ed133daae7a3ec597ff0810ab0622eaaea0f4
parentc94751025737d3a0096fe4a78a02b17581dfdde6
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