migrate: convert migrate_pages() to use folios
authorHuang Ying <ying.huang@intel.com>
Wed, 9 Nov 2022 01:23:48 +0000 (09:23 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:58:54 +0000 (15:58 -0800)
commiteaec4e639f11413ce75fbf38affd1aa5c40979e9
tree93a5ce13981d145aba2ed48a59d10d45b50d88bd
parent49f51859221a3dfee27488eaeaff800459cac6a9
migrate: convert migrate_pages() to use folios

Quite straightforward, the page functions are converted to corresponding
folio functions.  Same for comments.

THP specific code are converted to be large folio.

Link: https://lkml.kernel.org/r/20221109012348.93849-3-ying.huang@intel.com
Signed-off-by: "Huang, Ying" <ying.huang@intel.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Tested-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Zi Yan <ziy@nvidia.com>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/migrate.c