diff options
-rw-r--r-- | mm/slab.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2372,6 +2372,9 @@ void *kmem_cache_alloc_node(kmem_cache_t *cachep, int flags, int nodeid) | |||
2372 | struct slab *slabp; | 2372 | struct slab *slabp; |
2373 | kmem_bufctl_t next; | 2373 | kmem_bufctl_t next; |
2374 | 2374 | ||
2375 | if (nodeid == -1) | ||
2376 | return kmem_cache_alloc(cachep, flags); | ||
2377 | |||
2375 | for (loop = 0;;loop++) { | 2378 | for (loop = 0;;loop++) { |
2376 | struct list_head *q; | 2379 | struct list_head *q; |
2377 | 2380 | ||