[PATCH 0/5] mm: cleanup MIGRATE_SYNC_NO_COPY mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit 2916ecc0f9d4 ("mm/migrate: new migrate mode MIGRATE_SYNC_NO_COPY")
introduce a new MIGRATE_SYNC_NO_COPY mode to allow to offload the copy to
a device DMA engine, which is only used __migrate_device_pages() to decide
whether or not copy the old page, and the MIGRATE_SYNC_NO_COPY mode only
used in hmm, a easy way is just to call the folio_migrate_mapping() and
folio_migrate_flags(), which help to remove the MIGRATE_SYNC_NO_COPY
mode.

---

This is splitted from "mm: migrate: support poison recover from migrate
folio"[1] to make it easier review and hope it merged firstly since no
more comment for a long time, rebase on next-20240523 and only patch2
changed a bit due to commit e18a9faf06c2.

[1] https://lore.kernel.org/linux-mm/20240424135929.2847185-9-wangkefeng.wang@xxxxxxxxxx/

Kefeng Wang (5):
  mm: migrate: simplify __buffer_migrate_folio()
  mm: migrate_device: use a newfolio in __migrate_device_pages()
  mm: migrate_device: unify migrate folio for MIGRATE_SYNC_NO_COPY
  mm: migrate: remove migrate_folio_extra()
  mm: remove MIGRATE_SYNC_NO_COPY mode

 fs/aio.c                     | 12 +--------
 fs/hugetlbfs/inode.c         |  5 +---
 include/linux/migrate.h      |  2 --
 include/linux/migrate_mode.h |  5 ----
 mm/balloon_compaction.c      |  8 ------
 mm/migrate.c                 | 51 +++++++++---------------------------
 mm/migrate_device.c          | 22 +++++++++-------
 mm/zsmalloc.c                |  8 ------
 8 files changed, 27 insertions(+), 86 deletions(-)

-- 
2.27.0





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux