Skip to content

mm: yet more cleanups for page_alloc APIs

Brendan Jackman linux-fsdevel linux-iommu linux-mm linux-nfs lkml loongarch netdev 1 version In review

Get series with b4
b4 am [email protected] change-id 20260716-folio-alloc-cleanups-0fe319b881c2

Versions newest first

  1. v1 Latest3 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm: move internal mempolicy APIs to new internal headerMAINTAINERS include/linux/gfp.h mm/filemap.c +4 more+37 -912 replies
2/3mm, treewide: replace __folio_alloc_node() with folio_alloc_node()drivers/iommu/iommu-pages.c drivers/irqchip/irq-loongarch-ir.c include/linux/gfp.h +4 more+24 -242 replies
3/3mm: move __folio_alloc() to page_alloc.hinclude/linux/gfp.h mm/page_alloc.c mm/page_alloc.h+4 -51 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchGregory Price
1/3
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] mm: yet more cleanups for page_alloc APIs

Based on mm-new.

Align some APIs with recent cleanups [0][1], and hide more mm-internal APIs from public headers.

Part of this was also proposed by Vlastimil right as I was writing it:
https://lore.kernel.org/all/[email protected]/

And just like with my other recent patches, this has the ulterior motive of enabling later incoming patches to add alloc_flags arguments to these internal functions. (But, I do think these are justified as cleanups in their own right).

[0]: https://lore.kernel.org/all/[email protected]/
[1]: https://lore.kernel.org/all/[email protected]/

---
Brendan Jackman (3):
mm: move internal mempolicy APIs to new internal header mm, treewide: replace __folio_alloc_node() with folio_alloc_node()
mm: move __folio_alloc() to page_alloc.h

 MAINTAINERS                        |  1 +
 drivers/iommu/iommu-pages.c        |  9 +--------
 drivers/irqchip/irq-loongarch-ir.c |  4 ++--
 include/linux/gfp.h                | 25 +++----------------------
 mm/filemap.c                       |  4 +++-
 mm/mempolicy.c                     |  1 +
 mm/mempolicy.h                     | 31 +++++++++++++++++++++++++++++++
 mm/migrate.c                       |  2 +-
 mm/page_alloc.c                    | 18 +++++++++++++++---
 mm/page_alloc.h                    |  4 ++++
 mm/shmem.c                         |  1 +
 mm/swap_state.c                    |  1 +
 net/sunrpc/svc.c                   |  2 +-
 13 files changed, 65 insertions(+), 38 deletions(-)

---
base-commit: 512c82e906fe2c26023e307c7951d53e90910b57
change-id: 20260716-folio-alloc-cleanups-0fe319b881c2

Best regards,

Signature · 1 line
Brendan Jackman <[email protected]>