Skip to content

mm/damon: use alloc_migrate_target() for DAMOS_MIGRATE_{HOT,COLD}

SeongJae Park damon linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] revert-mm-make-alloc_demote_folio-externally-invokable-for-migration.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3mm/damon/paddr: use alloc_migartion_target() with no migration fallback nodemaskmm/damon/paddr.c+1 -30 repliesApplied
2/3Revert "mm: rename alloc_demote_folio to alloc_migrate_folio"mm/internal.h mm/vmscan.c+3 -30 repliesApplied
3/3Revert "mm: make alloc_demote_folio externally invokable for migration"mm/internal.h mm/vmscan.c+2 -20 repliesApplied

Reviews trailers per patch

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

PatchJoshua Hahn
SeriesR-b
1/3
2/3
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] mm/damon: use alloc_migrate_target() for DAMOS_MIGRATE_{HOT,COLD}

DAMOS_MIGRATE_{HOT,COLD} implementation resembles that for demotion, and hence the behavior is also similar to that. But, since those are not only for demotion but general migrations, it would be better to match with that for move_pages() system call. Make the implementation and the behavior more similar to move_pages() by not setting migration fallback nodes, and using alloc_migration_target() instead of alloc_migrate_folio().

alloc_migrate_folio() was renamed from alloc_demote_folio() and been non-static function, to let DAMOS_MIGRATE_{HOT,COLD} call it. As alloc_migration_target() is called instead, the renaming and de-static changes are no more required but could only make future code readers be confused. Revert the changes, too.

Changes from RFC
(https://lore.kernel.org/[email protected])
- Rebase to latest mm-new
- Slightly wordsmith cv and commit messages

SeongJae Park (3):
mm/damon/paddr: use alloc_migartion_target() with no migration
fallback nodemask
Revert "mm: rename alloc_demote_folio to alloc_migrate_folio" Revert "mm: make alloc_demote_folio externally invokable for
migration"

 mm/damon/paddr.c | 4 +---
 mm/internal.h    | 1 -
 mm/vmscan.c      | 5 +++--
 3 files changed, 4 insertions(+), 6 deletions(-)

base-commit: b29ac9653c1fae75d3444b6a03521c74adb6d4cc

Signature · 1 line
2.39.5