aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/slab.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 15d25ae5b686..e5ec26e0c460 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1205,11 +1205,7 @@ static void *kmem_getpages(kmem_cache_t *cachep, gfp_t flags, int nodeid)
1205 int i; 1205 int i;
1206 1206
1207 flags |= cachep->gfpflags; 1207 flags |= cachep->gfpflags;
1208 if (likely(nodeid == -1)) { 1208 page = alloc_pages_node(nodeid, flags, cachep->gfporder);
1209 page = alloc_pages(flags, cachep->gfporder);
1210 } else {
1211 page = alloc_pages_node(nodeid, flags, cachep->gfporder);
1212 }
1213 if (!page) 1209 if (!page)
1214 return NULL; 1210 return NULL;
1215 addr = page_address(page); 1211 addr = page_address(page);