migrate_pages: move split folios processing out of migrate_pages_batch()
authorHuang Ying <ying.huang@intel.com>
Fri, 3 Mar 2023 03:01:54 +0000 (11:01 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 8 Mar 2023 01:04:54 +0000 (17:04 -0800)
commita21d2133215b58fbf254ea2bb77eb3143ffedf60
tree7024840969634c1eb8302463ca04987762368d84
parentfb3592c41a4427601f9643b2a84e55bb99f5cd7c
migrate_pages: move split folios processing out of migrate_pages_batch()

To simplify the code logic and reduce the line number.

Link: https://lkml.kernel.org/r/20230303030155.160983-3-ying.huang@intel.com
Fixes: 5dfab109d519 ("migrate_pages: batch _unmap and _move")
Signed-off-by: "Huang, Ying" <ying.huang@intel.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: "Xu, Pengfei" <pengfei.xu@intel.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Stefan Roesch <shr@devkernel.io>
Cc: Tejun Heo <tj@kernel.org>
Cc: Xin Hao <xhao@linux.alibaba.com>
Cc: Zi Yan <ziy@nvidia.com>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/migrate.c