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, 28 Feb 2022 20:33:11 +0000 (15:33 -0500)
commit1de8566cca0aec6a8dc54a8cc5c6460e9de2cdb8
treeb1e0337fb96c42c8c95cb833df6d1cef1e9fc166
parent5a470d51cb2b2a0c14411a5950df6d9997c673e7
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