Skip to content

mm/mremap: cleanup move_page_tables() a little

Wei Yang linux-mm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v15 patches 20 repliesSuperseded

Changes in v2 from the cover letter

* remove 3rd patch which doesn't work on ARM platform. Thanks report from Dmitry Osipenko

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm/mremap: format the check in move_normal_pmd() same as move_huge_pmd()mm/mremap.c+3 -20 replies
2/4mm/mremap: it is sure to have enough space when extent meets requirementinclude/linux/huge_mm.h mm/huge_memory.c mm/mremap.c+7 -130 replies
3/4mm/mremap: calculate extent in one placemm/mremap.c+3 -30 replies
4/4mm/mremap: start addresses are properly alignedmm/huge_memory.c mm/mremap.c+0 -60 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchDmitry Osipenko
SeriesT-b
1/4
2/4
3/4
4/4

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

Read the v2 thread

Cover letter [Patch v2 0/4] mm/mremap: cleanup move_page_tables() a little

move_page_tables() tries to move page table by PMD or PTE.

The root reason is if it tries to move PMD, both old and new range should be PMD aligned. But current code calculate old range and new range separately. This leads to some redundant check and calculation.

This cleanup tries to consolidate the range check in one place to reduce some extra range handling.

v2:
* remove 3rd patch which doesn't work on ARM platform. Thanks report from Dmitry Osipenko

Wei Yang (4):
mm/mremap: format the check in move_normal_pmd() same as

    move_huge_pmd()

mm/mremap: it is sure to have enough space when extent meets
requirement
mm/mremap: calculate extent in one place mm/mremap: start addresses are properly aligned

 include/linux/huge_mm.h |  2 +-
 mm/huge_memory.c        |  8 +-------
 mm/mremap.c             | 17 ++++++-----------
 3 files changed, 8 insertions(+), 19 deletions(-)
Signature · 1 line
2.17.1