aboutsummaryrefslogtreecommitdiffstats
path: root/mm/vmscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r--mm/vmscan.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 876568847b71..8fd8ba1c67b4 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1853,7 +1853,6 @@ static int __zone_reclaim(struct zone *zone, gfp_t gfp_mask, unsigned int order)
1853 1853
1854int zone_reclaim(struct zone *zone, gfp_t gfp_mask, unsigned int order) 1854int zone_reclaim(struct zone *zone, gfp_t gfp_mask, unsigned int order)
1855{ 1855{
1856 cpumask_t mask;
1857 int node_id; 1856 int node_id;
1858 1857
1859 /* 1858 /*
@@ -1890,8 +1889,7 @@ int zone_reclaim(struct zone *zone, gfp_t gfp_mask, unsigned int order)
1890 * as wide as possible. 1889 * as wide as possible.
1891 */ 1890 */
1892 node_id = zone_to_nid(zone); 1891 node_id = zone_to_nid(zone);
1893 mask = node_to_cpumask(node_id); 1892 if (node_state(node_id, N_CPU) && node_id != numa_node_id())
1894 if (!cpus_empty(mask) && node_id != numa_node_id())
1895 return 0; 1893 return 0;
1896 return __zone_reclaim(zone, gfp_mask, order); 1894 return __zone_reclaim(zone, gfp_mask, order);
1897} 1895}