mm-hugetlb-extract-sysctl-into-hugetlb_sysctlc.patch removed from -mm tree
The quilt patch titled
Subject: mm/hugetlb: extract sysctl into hugetlb_sysctl.c
has been removed from the -mm tree. Its filename was
mm-hugetlb-extract-sysctl-into-hugetlb_sysctlc.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: Hui Zhu <[email protected]>
Subject: mm/hugetlb: extract sysctl into hugetlb_sysctl.c
Date: Thu, 6 Nov 2025 11:08:23 +0800
Following the extraction of sysfs code, this patch moves the sysctl interface implementation into a dedicated file to further improve code organization and maintainability of the hugetlb subsystem.
The following components are moved to mm/hugetlb_sysctl.c:
- proc_hugetlb_doulongvec_minmax()
- hugetlb_sysctl_handler_common()
- hugetlb_sysctl_handler()
- hugetlb_mempolicy_sysctl_handler() (CONFIG_NUMA)
- hugetlb_overcommit_handler()
- hugetlb_table[] sysctl table definition
- hugetlb_sysctl_init()
The hugetlb_internal.h header file is updated to declare the sysctl initialization function with proper #ifdef guards for configurations without CONFIG_SYSCTL support.
The Makefile is updated to compile hugetlb_sysctl.o when CONFIG_HUGETLBFS is enabled. This refactoring reduces the size of hugetlb.c and logically separates the sysctl interface from core hugetlb management code.
MAINTAINERS is updated to add new file hugetlb_sysctl.c.
No functional changes are introduced; all code is moved as-is from hugetlb.c with consistent formatting.
---
MAINTAINERS | 1 mm/Makefile | 2 mm/hugetlb.c | 132 --------------------------------------- mm/hugetlb_internal.h | 6 + mm/hugetlb_sysctl.c | 134 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 142 insertions(+), 133 deletions(-)
MAINTAINERS renamed from MAINTAINERS~mm-hugetlb-extract-sysctl-into-hugetlb_sysctlc +1 -0
@@ -11540,6 +11540,7 @@ F: mm/hugetlb.c F: mm/hugetlb_cgroup.c F: mm/hugetlb_cma.c F: mm/hugetlb_cma.h +F: mm/hugetlb_sysctl.c F: mm/hugetlb_sysfs.c F: mm/hugetlb_vmemmap.c F: mm/hugetlb_vmemmap.h
mm/hugetlb.c renamed from mm/hugetlb.c~mm-hugetlb-extract-sysctl-into-hugetlb_sysctlc +0 -132
150 lines not on this page · raw message
mm/hugetlb_internal.h renamed from mm/hugetlb_internal.h~mm-hugetlb-extract-sysctl-into-hugetlb_sysctlc +6 -0
@@ -108,4 +108,10 @@ extern ssize_t __nr_hugepages_store_commextern void hugetlb_sysfs_init (void )__init ; +#ifdef CONFIG_SYSCTL +extern void hugetlb_sysctl_init (void ); +#else +static inline void hugetlb_sysctl_init (void ) { } +#endif +#endif /* _LINUX_HUGETLB_INTERNAL_H */
mm/hugetlb_sysctl.c new file +134 -0
134 lines not on this page · raw message
mm/Makefile renamed from mm/Makefile~mm-hugetlb-extract-sysctl-into-hugetlb_sysctlc +1 -1
@@ -78,7 +78,7 @@ endif obj-$(CONFIG_SWAP) += page_io.o swap_state.o swapfile.o obj-$(CONFIG_ZSWAP) += zswap.o obj-$(CONFIG_HAS_DMA) += dmapool.o -obj-$(CONFIG_HUGETLBFS) += hugetlb.o hugetlb_sysfs.o +obj-$(CONFIG_HUGETLBFS) += hugetlb.o hugetlb_sysfs.o hugetlb_sysctl.o ifdef CONFIG_CMA obj-$(CONFIG_HUGETLBFS) += hugetlb_cma.o endif
_
Patches currently in -mm which might be from [email protected] are