diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 36a2f18c5e0a..e3086d0fd945 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -5137,8 +5137,7 @@ static DEFINE_PER_CPU(struct per_cpu_nodestat, boot_nodestats); | |||
5137 | */ | 5137 | */ |
5138 | DEFINE_MUTEX(zonelists_mutex); | 5138 | DEFINE_MUTEX(zonelists_mutex); |
5139 | 5139 | ||
5140 | /* return values int ....just for stop_machine() */ | 5140 | static void __build_all_zonelists(void *data) |
5141 | static int __build_all_zonelists(void *data) | ||
5142 | { | 5141 | { |
5143 | int nid; | 5142 | int nid; |
5144 | int __maybe_unused cpu; | 5143 | int __maybe_unused cpu; |
@@ -5174,8 +5173,6 @@ static int __build_all_zonelists(void *data) | |||
5174 | set_cpu_numa_mem(cpu, local_memory_node(cpu_to_node(cpu))); | 5173 | set_cpu_numa_mem(cpu, local_memory_node(cpu_to_node(cpu))); |
5175 | #endif | 5174 | #endif |
5176 | } | 5175 | } |
5177 | |||
5178 | return 0; | ||
5179 | } | 5176 | } |
5180 | 5177 | ||
5181 | static noinline void __init | 5178 | static noinline void __init |
@@ -5217,9 +5214,7 @@ void __ref build_all_zonelists(pg_data_t *pgdat) | |||
5217 | if (system_state == SYSTEM_BOOTING) { | 5214 | if (system_state == SYSTEM_BOOTING) { |
5218 | build_all_zonelists_init(); | 5215 | build_all_zonelists_init(); |
5219 | } else { | 5216 | } else { |
5220 | /* we have to stop all cpus to guarantee there is no user | 5217 | __build_all_zonelists(pgdat); |
5221 | of zonelist */ | ||
5222 | stop_machine_cpuslocked(__build_all_zonelists, pgdat, NULL); | ||
5223 | /* cpuset refresh routine should be here */ | 5218 | /* cpuset refresh routine should be here */ |
5224 | } | 5219 | } |
5225 | vm_total_pages = nr_free_pagecache_pages(); | 5220 | vm_total_pages = nr_free_pagecache_pages(); |