aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 18e3164de09a..bb3254c95cd2 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1707,7 +1707,7 @@ static void *kmem_getpages(struct kmem_cache *cachep, gfp_t flags, int nodeid)
1707 if (cachep->flags & SLAB_RECLAIM_ACCOUNT) 1707 if (cachep->flags & SLAB_RECLAIM_ACCOUNT)
1708 flags |= __GFP_RECLAIMABLE; 1708 flags |= __GFP_RECLAIMABLE;
1709 1709
1710 page = alloc_pages_node(nodeid, flags, cachep->gfporder); 1710 page = alloc_pages_exact_node(nodeid, flags, cachep->gfporder);
1711 if (!page) 1711 if (!page)
1712 return NULL; 1712 return NULL;
1713 1713
@@ -3261,7 +3261,7 @@ retry:
3261 if (local_flags & __GFP_WAIT) 3261 if (local_flags & __GFP_WAIT)
3262 local_irq_enable(); 3262 local_irq_enable();
3263 kmem_flagcheck(cache, flags); 3263 kmem_flagcheck(cache, flags);
3264 obj = kmem_getpages(cache, local_flags, -1); 3264 obj = kmem_getpages(cache, local_flags, numa_node_id());
3265 if (local_flags & __GFP_WAIT) 3265 if (local_flags & __GFP_WAIT)
3266 local_irq_disable(); 3266 local_irq_disable();
3267 if (obj) { 3267 if (obj) {