linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] mm: cleanup MIGRATE_SYNC_NO_COPY mode
@ 2024-05-24  5:28 Kefeng Wang
  2024-05-24  5:28 ` [PATCH 1/5] mm: migrate: simplify __buffer_migrate_folio() Kefeng Wang
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Kefeng Wang @ 2024-05-24  5:28 UTC (permalink / raw)
  To: akpm, linux-mm
  Cc: Tony Luck, Miaohe Lin, nao.horiguchi, Matthew Wilcox,
	David Hildenbrand, Muchun Song, Benjamin LaHaise, jglisse,
	Zi Yan, Jiaqi Yan, Hugh Dickins, Vishal Moola, Alistair Popple,
	Kefeng Wang

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@huawei.com/

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-06-07 21:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-24  5:28 [PATCH 0/5] mm: cleanup MIGRATE_SYNC_NO_COPY mode Kefeng Wang
2024-05-24  5:28 ` [PATCH 1/5] mm: migrate: simplify __buffer_migrate_folio() Kefeng Wang
2024-05-24  5:28 ` [PATCH 2/5] mm: migrate_device: use a newfolio in __migrate_device_pages() Kefeng Wang
2024-05-24  5:28 ` [PATCH 3/5] mm: migrate_device: unify migrate folio for MIGRATE_SYNC_NO_COPY Kefeng Wang
2024-06-07 20:23   ` Jane Chu
2024-05-24  5:28 ` [PATCH 4/5] mm: migrate: remove migrate_folio_extra() Kefeng Wang
2024-06-07 20:38   ` Jane Chu
2024-05-24  5:28 ` [PATCH 5/5] mm: remove MIGRATE_SYNC_NO_COPY mode Kefeng Wang
2024-06-07 21:27   ` Jane Chu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox