mm/rmap: Convert try_to_migrate() to folios
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 28 Jan 2022 19:29:43 +0000 (14:29 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 17:01:32 +0000 (13:01 -0400)
commit4b8554c527f3cfa183f6c06d231a9387873205a0
treecba1023980f8eaca5ae0f9c917056179113a1516
parent869f7ee6f6477341f859c8b0949ae81caf9ca7f3
mm/rmap: Convert try_to_migrate() to folios

Convert the callers to pass a folio and the try_to_migrate_one()
worker to use a folio throughout.  Fixes an assumption that a
folio must be <= PMD size.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/rmap.h
mm/huge_memory.c
mm/migrate.c
mm/migrate_device.c
mm/rmap.c