aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 03a386d24ef..fd8e3ca0cf3 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1464,8 +1464,11 @@ this_zone_full:
1464 if (NUMA_BUILD) 1464 if (NUMA_BUILD)
1465 zlc_mark_zone_full(zonelist, z); 1465 zlc_mark_zone_full(zonelist, z);
1466try_next_zone: 1466try_next_zone:
1467 if (NUMA_BUILD && !did_zlc_setup) { 1467 if (NUMA_BUILD && !did_zlc_setup && num_online_nodes() > 1) {
1468 /* we do zlc_setup after the first zone is tried */ 1468 /*
1469 * we do zlc_setup after the first zone is tried but only
1470 * if there are multiple nodes make it worthwhile
1471 */
1469 allowednodes = zlc_setup(zonelist, alloc_flags); 1472 allowednodes = zlc_setup(zonelist, alloc_flags);
1470 zlc_active = 1; 1473 zlc_active = 1;
1471 did_zlc_setup = 1; 1474 did_zlc_setup = 1;