linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/2] migrate: convert migrate_pages()/unmap_and_move() to use folios
@ 2022-11-01  6:21 Huang Ying
  2022-11-01  6:21 ` [RFC 1/2] migrate: convert unmap_and_move() " Huang Ying
  2022-11-01  6:21 ` [RFC 2/2] migrate: convert migrate_pages() " Huang Ying
  0 siblings, 2 replies; 7+ messages in thread
From: Huang Ying @ 2022-11-01  6:21 UTC (permalink / raw)
  To: linux-mm
  Cc: Matthew Wilcox, linux-kernel, Andrew Morton, Huang Ying, Zi Yan,
	Yang Shi, Baolin Wang, Oscar Salvador

The conversion is quite straightforward, just replace the page API to
the corresponding folio API.  migrate_pages() and unmap_and_move()
mostly work with folios (head pages) only.

One question is about THP.  Which is converted to large folio in the
patchset.  This is generally OK, because the code can work with
arbitrary order large folio at most times.  But some THP related
statistics (such as THP_MIGRATION_SUCCESS, etc.) are converted for
large folio with arbitrary order too.  Do we really care about the
order of large folio?  Do we need to be backward compatible strictly?

Best Regards,
Huang, Ying


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

end of thread, other threads:[~2022-11-02  2:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-01  6:21 [RFC 0/2] migrate: convert migrate_pages()/unmap_and_move() to use folios Huang Ying
2022-11-01  6:21 ` [RFC 1/2] migrate: convert unmap_and_move() " Huang Ying
2022-11-01 14:54   ` Zi Yan
2022-11-02  2:11     ` Huang, Ying
2022-11-01  6:21 ` [RFC 2/2] migrate: convert migrate_pages() " Huang Ying
2022-11-01 13:02   ` Matthew Wilcox
2022-11-02  2:10     ` Huang, Ying

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