|
@@ -1464,8 +1464,11 @@ this_zone_full:
|
|
|
if (NUMA_BUILD)
|
|
|
zlc_mark_zone_full(zonelist, z);
|
|
|
try_next_zone:
|
|
|
- if (NUMA_BUILD && !did_zlc_setup) {
|
|
|
- /* we do zlc_setup after the first zone is tried */
|
|
|
+ if (NUMA_BUILD && !did_zlc_setup && num_online_nodes() > 1) {
|
|
|
+ /*
|
|
|
+ * we do zlc_setup after the first zone is tried but only
|
|
|
+ * if there are multiple nodes make it worthwhile
|
|
|
+ */
|
|
|
allowednodes = zlc_setup(zonelist, alloc_flags);
|
|
|
zlc_active = 1;
|
|
|
did_zlc_setup = 1;
|