mm/gup: Convert check_and_migrate_movable_pages() to use a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 17 Feb 2022 17:46:35 +0000 (12:46 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 17 Feb 2022 22:05:53 +0000 (17:05 -0500)
commit0bd5a3f89e2b03e2a39bef07ed5cd4f656866451
tree07bf52c0d06c836ac350273efce9f74976f968c0
parentc0e8c878bb186c920c13016d00772406adeab567
mm/gup: Convert check_and_migrate_movable_pages() to use a folio

Switch from head pages to folios.  This removes an assumption that
THPs are the only way to have a high-order page.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
mm/gup.c