linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] mm/hugetlb: refactor sysfs/sysctl interfaces
@ 2025-11-05  2:42 Hui Zhu
  2025-11-05  2:42 ` [PATCH v4 1/2] mm/hugetlb: extract sysfs into hugetlb_sysfs.c Hui Zhu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Hui Zhu @ 2025-11-05  2:42 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:
v4:
According to the comments of David Hildenbrand, add copyright of
hugetlb.c to hugetlb_internal.h, hugetlb_sysctl.c and hugetlb_sysfs.c.
v3:
According to the comments of SeongJae Park, updated MAINTAINERS to
add new files.
Removed the wrong copyright in hugetlb_internal.h.
v2:
According to the comments of David Hildenbrand, removed the wrong
copyright in the file headers.

Hui Zhu (2):
  mm/hugetlb: extract sysfs into hugetlb_sysfs.c
  mm/hugetlb: extract sysctl into hugetlb_sysctl.c

 MAINTAINERS           |   2 +
 mm/Makefile           |   2 +-
 mm/hugetlb.c          | 852 +-----------------------------------------
 mm/hugetlb_internal.h | 114 ++++++
 mm/hugetlb_sysctl.c   | 134 +++++++
 mm/hugetlb_sysfs.c    | 630 +++++++++++++++++++++++++++++++
 6 files changed, 890 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] 5+ messages in thread

end of thread, other threads:[~2025-11-05 16:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-05  2:42 [PATCH v4 0/2] mm/hugetlb: refactor sysfs/sysctl interfaces Hui Zhu
2025-11-05  2:42 ` [PATCH v4 1/2] mm/hugetlb: extract sysfs into hugetlb_sysfs.c Hui Zhu
2025-11-05  2:42 ` [PATCH v4 2/2] mm/hugetlb: extract sysctl into hugetlb_sysctl.c Hui Zhu
2025-11-05 14:16 ` [PATCH v4 0/2] mm/hugetlb: refactor sysfs/sysctl interfaces Oscar Salvador
2025-11-05 16:39   ` David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).