linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/slub: replace alloc_pages with folio_alloc
@ 2022-05-28 16:11 bh1scw
  2022-05-28 16:27 ` Matthew Wilcox
  2022-05-30  4:10 ` [mm/slub] 4c863a2fd7: WARNING:at_mm/page_alloc.c:#__alloc_pages kernel test robot
  0 siblings, 2 replies; 6+ messages in thread
From: bh1scw @ 2022-05-28 16:11 UTC (permalink / raw)
  To: Christoph Lameter, Pekka Enberg, David Rientjes, Joonsoo Kim,
	Andrew Morton, Vlastimil Babka
  Cc: Roman Gushchin, linux-mm, linux-kernel, Muchun Song, Fanjun Kong

From: Fanjun Kong <bh1scw@gmail.com>

This patch will use folio allocation functions for allocating pages.

Signed-off-by: Fanjun Kong <bh1scw@gmail.com>
---
 mm/slub.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/slub.c b/mm/slub.c
index e5535020e0fd..00c4049a17d6 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1794,9 +1794,9 @@ static inline struct slab *alloc_slab_page(gfp_t flags, int node,
 	unsigned int order = oo_order(oo);
 
 	if (node == NUMA_NO_NODE)
-		folio = (struct folio *)alloc_pages(flags, order);
+		folio = (struct folio *)folio_alloc(flags, order);
 	else
-		folio = (struct folio *)__alloc_pages_node(node, flags, order);
+		folio = (struct folio *)__folio_alloc_node(node, flags, order);
 
 	if (!folio)
 		return NULL;
-- 
2.36.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-30  4:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-28 16:11 [PATCH] mm/slub: replace alloc_pages with folio_alloc bh1scw
2022-05-28 16:27 ` Matthew Wilcox
2022-05-29  2:58   ` Muchun Song
2022-05-29  3:31     ` Matthew Wilcox
2022-05-30  0:55       ` Matthew Wilcox
2022-05-30  4:10 ` [mm/slub] 4c863a2fd7: WARNING:at_mm/page_alloc.c:#__alloc_pages kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).