Skip to content

mm: remove CONFIG_HAVE_BOOTMEM_INFO_NODE (Part 1)

David Hildenbrand (Arm) linux-mm linux-s390 linuxppc-dev lkml sparclinux 1 version Applied

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

Get series with b4
b4 am [email protected] change-id 20260511-bootmem_info_prep-bfc0e7a5b87e

Versions newest first

  1. v1 Latest8 patches 36 repliesApplied 8/8

Patches in v1 All 8 applied

#Subject and filesSizeRepliesApplied
1/8sparc/mm: remove register_page_bootmem_info()arch/sparc/mm/init_64.c+0 -203 repliesApplied
2/8mm/bootmem_info: drop initialization of page->lrumm/bootmem_info.c+0 -13 repliesApplied
3/8mm/bootmem_info: stop using PG_privatemm/bootmem_info.c+0 -23 repliesApplied
4/8mm/bootmem_info: remove call to kmemleak_free_part_phys()include/linux/bootmem_info.h mm/bootmem_info.c+0 -24 repliesApplied
5/8mm/bootmem_info: stop marking the pgdat as NODE_INFOmm/bootmem_info.c+1 -85 repliesApplied
6/8mm/bootmem_info: stop marking mem_section_usage as MIX_SECTION_INFOmm/bootmem_info.c+1 -113 repliesApplied
7/8s390/mm: use free_reserved_page() in vmem_free_pages()arch/s390/mm/vmem.c+1 -27 repliesApplied
8/8powerpc/mm: remove CONFIG_HAVE_BOOTMEM_INFO_NODEarch/powerpc/mm/init_64.c mm/Kconfig+1 -94 repliesApplied

Reviews trailers per patch

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

PatchHeiko CarstensMichal HockoOscar SalvadorRitesh Harjani (IBM)Mike Rapoport (Microsoft)Lance Yang
SeriesA-b
1/8A-b R-b R-b
2/8A-b R-b R-b
3/8A-b R-b R-b
4/8R-b R-b T-b
5/8A-b R-b R-b
6/8A-b R-b R-b
7/8A-b R-b R-b R-b
8/8A-b R-b R-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 6 reviewers.

Read the v1 thread

Cover letter [PATCH 0/8] mm: remove CONFIG_HAVE_BOOTMEM_INFO_NODE (Part 1)

We want to remove CONFIG_HAVE_BOOTMEM_INFO_NODE. As a first step, let's limit the remaining harm to x86 and core code, removing sparc, ppc and s390 leftovers, starting the stepwise removal by removing and simplifying some code.

Once a related x86 vmemmap fix [1] is in, we can merge part 2 that will remove CONFIG_HAVE_BOOTMEM_INFO_NODE entirely.

Tested on x86-64 with hugetlb vmemmap optimization in combination with KMEMLEAK, making sure that the problem reported in dd0ff4d12dd2 ("bootmem:
remove the vmemmap pages from kmemleak in put_page_bootmem") does not reappear -- hoping I managed to trigger the original problem.

Heavily cross-compiled, but let's let build bots run on it for a bit.

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

---
David Hildenbrand (Arm) (8):
sparc/mm: remove register_page_bootmem_info() mm/bootmem_info: drop initialization of page->lru mm/bootmem_info: stop using PG_private
mm/bootmem_info: remove call to kmemleak_free_part_phys() mm/bootmem_info: stop marking the pgdat as NODE_INFO mm/bootmem_info: stop marking mem_section_usage as MIX_SECTION_INFO s390/mm: use free_reserved_page() in vmem_free_pages() powerpc/mm: remove CONFIG_HAVE_BOOTMEM_INFO_NODE

 arch/powerpc/mm/init_64.c    |  8 --------
 arch/s390/mm/vmem.c          |  3 +--
 arch/sparc/mm/init_64.c      | 20 --------------------
 include/linux/bootmem_info.h |  1 -
 mm/Kconfig                   |  2 +-
 mm/bootmem_info.c            | 25 ++-----------------------
 6 files changed, 4 insertions(+), 55 deletions(-)

---

base-commit: e9dd96806dbc2d50a66770b6a86962bd5d601153

change-id: 20260511-bootmem_info_prep-bfc0e7a5b87e

--

Cheers,

David