Skip to content

mm: remove CONFIG_HAVE_BOOTMEM_INFO_NODE (Part 2)

David Hildenbrand (Arm) linux-mm linux-s390 lkml 2 versions – Applied

Status from this message: [merged mm-stable] mm-bootmem_info-remove-config_have_bootmem_info_node.patch removed from -mm tree

Get series with b4
b4 am [email protected] change-id 20260428-bootmem_info_part2-4bbb445d9b3d

Versions newest first

  1. v2 Latest10 patches 7 repliesApplied 10/10
  2. v110 patches 14 repliesSuperseded

Changes in v2 from the cover letter

- In patch #2, reverse the order of setting the page count and clearing PG_reserved, and modify the patch description accordingly.
- Link to v1: https://patch.msgid.link/[email protected]

Patches in v2 All 10 applied

#Subject and filesSizeRepliesApplied
1/10x86/mm: drop order parameter from free_pagetable()arch/x86/mm/init_64.c+9 -121 replyApplied
2/10mm: provide free_reserved_pages(), removing x86 variantarch/x86/mm/init_64.c include/linux/mm.h mm/page_alloc.c+33 -161 replyApplied
3/10s390/mm: use free_reserved_pages() in vmem_free_pages()arch/s390/mm/vmem.c+1 -31 replyApplied
4/10mm/bootmem_info: allow calling free_bootmem_page() on pages without a bootmem_typeinclude/linux/bootmem_info.h+5 -51 replyApplied
5/10x86/mm: stop marking vmemmap as SECTION_INFOarch/x86/mm/init_64.c+4 -260 repliesApplied
6/10x86/mm: stop marking page tables as MIX_SECTION_INFOarch/x86/mm/init_64.c+2 -570 repliesApplied
7/10x86/mm: remove CONFIG_HAVE_BOOTMEM_INFO_NODEarch/x86/mm/init_64.c mm/Kconfig+0 -270 repliesApplied
8/10mm/hugetlb_vmemmap: remove bootmem_info leftoversmm/hugetlb_vmemmap.c+2 -60 repliesApplied
9/10mm/sparse: remove bootmem_info.h includemm/sparse.c+0 -10 repliesApplied
10/10mm/bootmem_info: remove CONFIG_HAVE_BOOTMEM_INFO_NODEMAINTAINERS include/linux/bootmem_info.h mm/Kconfig +2 more+0 -1700 repliesApplied

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMike Rapoport (Microsoft)Muchun SongHeiko CarstensDave HansenZi Yan
SeriesR-b
1/10R-b R-b R-b
2/10R-b R-b R-b
3/10R-b R-b A-b R-b
4/10R-b R-b A-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b R-b
9/10R-b R-b
10/10R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/10] mm: remove CONFIG_HAVE_BOOTMEM_INFO_NODE (Part 2)

Let's remove the remaining pieces of CONFIG_HAVE_BOOTMEM_INFO_NODE, performing some smaller cleanups around freeing of reserved vmemmap pages on the way.

Tested on x86-64 with hugetlb vmemmap optimization in combination with KMEMLEAK. Heavily cross-compiled.

---
Changes in v2:
- In patch #2, reverse the order of setting the page count and clearing PG_reserved, and modify the patch description accordingly.
- Link to v1: https://patch.msgid.link/[email protected]

---

David Hildenbrand (Arm) (10):
x86/mm: drop order parameter from free_pagetable()
mm: provide free_reserved_pages(), removing x86 variant
s390/mm: use free_reserved_pages() in vmem_free_pages() mm/bootmem_info: allow calling free_bootmem_page() on pages without a bootmem_type x86/mm: stop marking vmemmap as SECTION_INFO
x86/mm: stop marking page tables as MIX_SECTION_INFO
x86/mm: remove CONFIG_HAVE_BOOTMEM_INFO_NODE
mm/hugetlb_vmemmap: remove bootmem_info leftovers
mm/sparse: remove bootmem_info.h include
mm/bootmem_info: remove CONFIG_HAVE_BOOTMEM_INFO_NODE

 MAINTAINERS                  |   1 -
 arch/s390/mm/vmem.c          |   4 +-
 arch/x86/mm/init_64.c        | 134 ++++---------------------------------------
 include/linux/bootmem_info.h |  89 ----------------------------
 include/linux/mm.h           |   8 ++-
 mm/Kconfig                   |   8 ---
 mm/Makefile                  |   1 -
 mm/bootmem_info.c            |  72 -----------------------
 mm/hugetlb_vmemmap.c         |   8 +--
 mm/page_alloc.c              |  33 ++++++++---
 mm/sparse.c                  |   1 -
 11 files changed, 46 insertions(+), 313 deletions(-)

---

base-commit: d11ba1f570615ec8d4814d6313ee1d7075a33787

change-id: 20260428-bootmem_info_part2-4bbb445d9b3d

--

Cheers,

David