Skip to content

Some cleanups for huge_memory

Miaohe Lin linux-mm lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 4 repliesIn review 5 of 6 applied
  2. v26 patches 3 repliesSuperseded
  3. v16 patches 2 repliesSuperseded

Changes in v3 from the cover letter

use ALIGN/ALIGN_DOWN too against HPAGE_PMD_SIZE per Peter.

Patches in v3 5 of 6 applied

#Subject and filesSizeRepliesApplied
1/6mm/huge_memory.c: rework the function vma_adjust_trans_huge()mm/huge_memory.c+19 -250 replies
2/6mm/huge_memory.c: make get_huge_zero_page() return boolmm/huge_memory.c+4 -41 replyApplied
3/6mm/huge_memory.c: rework the function do_huge_pmd_numa_page() slightlymm/huge_memory.c+5 -61 replyApplied
4/6mm/huge_memory.c: remove redundant PageCompound() checkmm/huge_memory.c+1 -10 repliesApplied
5/6mm/huge_memory.c: remove unused macro TRANSPARENT_HUGEPAGE_DEBUG_COW_FLAGinclude/linux/huge_mm.h+0 -31 replyApplied
6/6mm/huge_memory.c: use helper function migration_entry_to_page()mm/huge_memory.c+2 -20 repliesApplied

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter Xu
SeriesR-b
1/6
2/6
3/6
4/6
5/6
6/6

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/6] Some cleanups for huge_memory

Hi all,
This series contains cleanups to rework some function logics to make it more readable, use helper function and so on. More details can be found in the respective changelogs. Thanks!

v2->v3:
use ALIGN/ALIGN_DOWN too against HPAGE_PMD_SIZE per Peter.

v1->v2:
rename try_to_split_huge_pmd_address and move up comments.

Miaohe Lin (6):
mm/huge_memory.c: rework the function vma_adjust_trans_huge() mm/huge_memory.c: make get_huge_zero_page() return bool mm/huge_memory.c: rework the function do_huge_pmd_numa_page() slightly mm/huge_memory.c: remove redundant PageCompound() check mm/huge_memory.c: remove unused macro
TRANSPARENT_HUGEPAGE_DEBUG_COW_FLAG
mm/huge_memory.c: use helper function migration_entry_to_page()

 include/linux/huge_mm.h |  3 --
 mm/huge_memory.c        | 69 ++++++++++++++++++-----------------------
 2 files changed, 31 insertions(+), 41 deletions(-)
Signature · 1 line
2.19.1