diff options
-rw-r--r-- | mm/memcontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index c02d87028b9f..f6c4beb4db56 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -4742,7 +4742,6 @@ static int alloc_mem_cgroup_per_zone_info(struct mem_cgroup *memcg, int node) | |||
4742 | if (!pn) | 4742 | if (!pn) |
4743 | return 1; | 4743 | return 1; |
4744 | 4744 | ||
4745 | memcg->info.nodeinfo[node] = pn; | ||
4746 | for (zone = 0; zone < MAX_NR_ZONES; zone++) { | 4745 | for (zone = 0; zone < MAX_NR_ZONES; zone++) { |
4747 | mz = &pn->zoneinfo[zone]; | 4746 | mz = &pn->zoneinfo[zone]; |
4748 | for_each_lru(l) | 4747 | for_each_lru(l) |
@@ -4751,6 +4750,7 @@ static int alloc_mem_cgroup_per_zone_info(struct mem_cgroup *memcg, int node) | |||
4751 | mz->on_tree = false; | 4750 | mz->on_tree = false; |
4752 | mz->mem = memcg; | 4751 | mz->mem = memcg; |
4753 | } | 4752 | } |
4753 | memcg->info.nodeinfo[node] = pn; | ||
4754 | return 0; | 4754 | return 0; |
4755 | } | 4755 | } |
4756 | 4756 | ||