linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mm/hugetlb: refactor sysfs/sysctl interfaces
@ 2025-11-04  2:38 Hui Zhu
  2025-11-04  2:38 ` [PATCH v2 1/2] mm/hugetlb: extract sysfs into hugetlb_sysfs.c Hui Zhu
  2025-11-04  2:38 ` [PATCH v2 2/2] mm/hugetlb: extract sysctl into hugetlb_sysctl.c Hui Zhu
  0 siblings, 2 replies; 3+ messages in thread
From: Hui Zhu @ 2025-11-04  2:38 UTC (permalink / raw)
  To: Andrew Morton, Muchun Song, Oscar Salvador, David Hildenbrand,
	linux-kernel, linux-mm
  Cc: Hui Zhu

From: Hui Zhu <zhuhui@kylinos.cn>

The hugetlb.c file has grown significantly and become difficult to
maintain. This patch series extracts the sysfs and sysctl interface
code into separate dedicated files to improve code organization.

The refactoring includes:
- Patch 1: Extract sysfs interface into mm/hugetlb_sysfs.c
- Patch 2: Extract sysctl interface into mm/hugetlb_sysctl.c

No functional changes are introduced in this series. The code is moved
as-is, with only minor formatting adjustments for code style
consistency. This should make future maintenance and enhancements to
the hugetlb subsystem easier.

Testing: The patch series has been compile-tested and maintains the
same functionality as the original code.

Changelog:
v2:
According to the comments of David, remove the wrong copyright in
the file headers.

Geliang Tang (1):
  mm/hugetlb: extract sysfs into hugetlb_sysfs.c

Hui Zhu (1):
  mm/hugetlb: extract sysctl into hugetlb_sysctl.c

 mm/Makefile           |   2 +-
 mm/hugetlb.c          | 852 +-----------------------------------------
 mm/hugetlb_internal.h | 116 ++++++
 mm/hugetlb_sysctl.c   | 133 +++++++
 mm/hugetlb_sysfs.c    | 629 +++++++++++++++++++++++++++++++
 5 files changed, 888 insertions(+), 844 deletions(-)
 create mode 100644 mm/hugetlb_internal.h
 create mode 100644 mm/hugetlb_sysctl.c
 create mode 100644 mm/hugetlb_sysfs.c

-- 
2.43.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-04  2:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-04  2:38 [PATCH v2 0/2] mm/hugetlb: refactor sysfs/sysctl interfaces Hui Zhu
2025-11-04  2:38 ` [PATCH v2 1/2] mm/hugetlb: extract sysfs into hugetlb_sysfs.c Hui Zhu
2025-11-04  2:38 ` [PATCH v2 2/2] mm/hugetlb: extract sysctl into hugetlb_sysctl.c Hui Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox