diff --git a/mm/slub.c b/mm/slub.c index 891742e5932a..a5420be89c8c 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1877,11 +1877,7 @@ static inline struct slab *alloc_slab_page(gfp_t flags, int node, struct slab *slab; unsigned int order = oo_order(oo); - if (node == NUMA_NO_NODE) - folio = (struct folio *)alloc_pages(flags, order); - else - folio = (struct folio *)__alloc_pages_node(node, flags, order); - + folio = (struct folio *)alloc_pages_node(node, flags, order); if (!folio) return NULL;