aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2008-04-29 04:00:24 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-29 11:06:11 -0400
commit1faf8e40a8ab12ae1f7f474965e6fb031e43f8d6 (patch)
tree7448f437cc527d4396269945e070c841e0f1603d /mm
parent33327948782bcef89c78eb47af86b6a2df9fd4a5 (diff)
memcg: remove redundant initialization in mem_cgroup_create()
*mem has been zeroed, that means mem->info has already been filled with 0. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/memcontrol.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 15aa34b11e88..33add96cd5fb 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -1024,8 +1024,6 @@ mem_cgroup_create(struct cgroup_subsys *ss, struct cgroup *cont)
1024 1024
1025 res_counter_init(&mem->res); 1025 res_counter_init(&mem->res);
1026 1026
1027 memset(&mem->info, 0, sizeof(mem->info));
1028
1029 for_each_node_state(node, N_POSSIBLE) 1027 for_each_node_state(node, N_POSSIBLE)
1030 if (alloc_mem_cgroup_per_zone_info(mem, node)) 1028 if (alloc_mem_cgroup_per_zone_info(mem, node))
1031 goto free_out; 1029 goto free_out;