Skip to contentSkip to conversation

mm-hugetlb-move-hugetlb-cma-code-in-to-its-own-file.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Mar 17, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/hugetlb: move hugetlb CMA code in to its own file
has been removed from the -mm tree. Its filename was
mm-hugetlb-move-hugetlb-cma-code-in-to-its-own-file.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Frank van der Linden <[email protected]>
Subject: mm/hugetlb: move hugetlb CMA code in to its own file
Date: Fri, 28 Feb 2025 18:29:28 +0000

hugetlb.c contained a number of CONFIG_CMA ifdefs, and the code inside them was large enough to merit being in its own file, so move it, cleaning up things a bit.

Hide some direct variable access behind functions to accommodate the move.

No functional change intended.

Cc Alexander Gordeev <[email protected]>
Cc Andy Lutomirski <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Dan Carpenter <[email protected]>
Cc Dave Hansen <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Heiko Carstens <[email protected]>
Cc Joao Martins <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Madhavan Srinivasan <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Muchun Song <[email protected]>
Cc Oscar Salvador <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Roman Gushchin (Cruise) <[email protected]>
Cc Usama Arif <[email protected]>
Cc Vasily Gorbik <[email protected]>
Cc Yu Zhao <[email protected]>
Cc Zi Yan <[email protected]>

---

 MAINTAINERS      |    2 
 mm/Makefile      |    3 
 mm/hugetlb.c     |  269 ++------------------------------------------
 mm/hugetlb_cma.c |  275 +++++++++++++++++++++++++++++++++++++++++++++
 mm/hugetlb_cma.h |   57 +++++++++
 5 files changed, 354 insertions(+), 252 deletions(-)
MAINTAINERS renamed from MAINTAINERS~mm-hugetlb-move-hugetlb-cma-code-in-to-its-own-file +2 -0
@@ -10708,6 +10708,8 @@ F:	fs/hugetlbfs/
 F:	include/linux/hugetlb.h
 F:	include/trace/events/hugetlbfs.h
 F:	mm/hugetlb.c
+F:	mm/hugetlb_cma.c
+F:	mm/hugetlb_cma.h
 F:	mm/hugetlb_vmemmap.c
 F:	mm/hugetlb_vmemmap.h
 F:	tools/testing/selftests/cgroup/test_hugetlb_memcg.c
mm/hugetlb.c renamed from mm/hugetlb.c~mm-hugetlb-move-hugetlb-cma-code-in-to-its-own-file +17 -252

347 lines not on this page · raw message

mm/hugetlb_cma.c new file +275 -0

275 lines not on this page · raw message

mm/hugetlb_cma.h new file +57 -0

57 lines not on this page · raw message

mm/Makefile renamed from mm/Makefile~mm-hugetlb-move-hugetlb-cma-code-in-to-its-own-file +3 -0
@@ -79,6 +79,9 @@ obj-$(CONFIG_SWAP)	+= page_io.o swap_sta
 obj-$(CONFIG_ZSWAP)	+= zswap.o
 obj-$(CONFIG_HAS_DMA)	+= dmapool.o
 obj-$(CONFIG_HUGETLBFS)	+= hugetlb.o
+ifdef CONFIG_CMA
+obj-$(CONFIG_HUGETLBFS)	+= hugetlb_cma.o
+endif
 obj-$(CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP)	+= hugetlb_vmemmap.o
 obj-$(CONFIG_NUMA) 	+= mempolicy.o
 obj-$(CONFIG_SPARSEMEM)	+= sparse.o

_

Patches currently in -mm which might be from [email protected] are