Skip to content

Commit 8014c46

Browse files
Matthew Wilcox (Oracle)akpm00
authored andcommitted
slub: use alloc_pages_node() in alloc_slab_page()
For no apparent reason, we were open-coding alloc_pages_node() in this function. Link: https://lkml.kernel.org/r/20231228085748.1083901-3-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Acked-by: David Rientjes <rientjes@google.com> Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent e435ca8 commit 8014c46

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

mm/slub.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1877,11 +1877,7 @@ static inline struct slab *alloc_slab_page(gfp_t flags, int node,
18771877
struct slab *slab;
18781878
unsigned int order = oo_order(oo);
18791879

1880-
if (node == NUMA_NO_NODE)
1881-
folio = (struct folio *)alloc_pages(flags, order);
1882-
else
1883-
folio = (struct folio *)__alloc_pages_node(node, flags, order);
1884-
1880+
folio = (struct folio *)alloc_pages_node(node, flags, order);
18851881
if (!folio)
18861882
return NULL;
18871883

0 commit comments

Comments
 (0)