aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 19ebbfb20689..80d20cc1c0f8 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1285,6 +1285,8 @@ static struct page *get_any_partial(struct kmem_cache *s, gfp_t flags)
1285#ifdef CONFIG_NUMA 1285#ifdef CONFIG_NUMA
1286 struct zonelist *zonelist; 1286 struct zonelist *zonelist;
1287 struct zone **z; 1287 struct zone **z;
1288 struct zone *zone;
1289 enum zone_type high_zoneidx = gfp_zone(flags);
1288 struct page *page; 1290 struct page *page;
1289 1291
1290 /* 1292 /*
@@ -1310,12 +1312,12 @@ static struct page *get_any_partial(struct kmem_cache *s, gfp_t flags)
1310 return NULL; 1312 return NULL;
1311 1313
1312 zonelist = node_zonelist(slab_node(current->mempolicy), flags); 1314 zonelist = node_zonelist(slab_node(current->mempolicy), flags);
1313 for (z = zonelist->zones; *z; z++) { 1315 for_each_zone_zonelist(zone, z, zonelist, high_zoneidx) {
1314 struct kmem_cache_node *n; 1316 struct kmem_cache_node *n;
1315 1317
1316 n = get_node(s, zone_to_nid(*z)); 1318 n = get_node(s, zone_to_nid(zone));
1317 1319
1318 if (n && cpuset_zone_allowed_hardwall(*z, flags) && 1320 if (n && cpuset_zone_allowed_hardwall(zone, flags) &&
1319 n->nr_partial > MIN_PARTIAL) { 1321 n->nr_partial > MIN_PARTIAL) {
1320 page = get_partial_node(n); 1322 page = get_partial_node(n);
1321 if (page) 1323 if (page)