diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slab.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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); |