mm/page_alloc: fix nodes for reclaim in fast path

am: d1e8042628

Change-Id: I8535fbab1eede643a486709df9910876daa511b9
This commit is contained in:
Gavin Shan
2017-03-12 08:17:20 +00:00
committed by android-build-merger

View File

@@ -2858,7 +2858,7 @@ bool zone_watermark_ok_safe(struct zone *z, unsigned int order,
#ifdef CONFIG_NUMA
static bool zone_allows_reclaim(struct zone *local_zone, struct zone *zone)
{
return node_distance(zone_to_nid(local_zone), zone_to_nid(zone)) <
return node_distance(zone_to_nid(local_zone), zone_to_nid(zone)) <=
RECLAIM_DISTANCE;
}
#else /* CONFIG_NUMA */