Skip to content

mm/huge_memory: Define split_type and consolidate split support checks

Wei Yang linux-mm 1 version Applied

Status from this message: [merged mm-stable] mm-huge_memory-merge-uniform_split_supported-and-non_uniform_split_supported.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 29 repliesApplied 2/2

Changes in v3 from the cover letter

* rebase on latest mm-new with Zi Yan fix [3]
* introduce split_type to identify uniform/non-uniform split

Patches in v3 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm/huge_memory: introduce enum split_type for clarityinclude/linux/huge_mm.h mm/huge_memory.c+20 -153 repliesApplied
2/2mm/huge_memory: merge uniform_split_supported() and non_uniform_split_supported()include/linux/huge_mm.h mm/huge_memory.c+33 -4626 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid Hildenbrand (Red Hat)
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Patch v3 0/2] mm/huge_memory: Define split_type and consolidate split support checks

This two-patch series focuses on improving code clarity and removing redundancy in the huge memory handling logic related to folio splitting.

The series is based on an original proposal to merge two significantly identical functions that check folio split support[1]. During this process, we found an opportunity to improve readability by explicitly defining the split types.

Patch 1: define split_type and use it
Patch 2: merge uniform_split_supported() and non_uniform_split_supported()

V3:
* rebase on latest mm-new with Zi Yan fix [3]
* introduce split_type to identify uniform/non-uniform split

V2:
* adjust comment
* remove need_check

V1: [1]

[1]: lkml.kernel.org/r/[email protected] [2]: lkml.kernel.org/r/[email protected] [3]: lkml.kernel.org/r/[email protected]

Wei Yang (2):
mm/huge_memory: introduce enum split_type for clarity mm/huge_memory: merge uniform_split_supported() and
non_uniform_split_supported()

 include/linux/huge_mm.h | 13 +++---
 mm/huge_memory.c        | 97 ++++++++++++++++++-----------------------
 2 files changed, 51 insertions(+), 59 deletions(-)
Signature · 1 line
2.34.1