]> git.baikalelectronics.ru Git - kernel.git/commit
mm/migrate: Use a folio in alloc_migration_target()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 4 Apr 2022 18:35:04 +0000 (14:35 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 7 Apr 2022 13:43:41 +0000 (09:43 -0400)
commitffe06786b54039edcecb51a54061ee8d81036a19
treebfb6c6b00973c48903c1ac6ba50fc05899a4f469
parent83a8441f8d8e2e47e9bf2aead3aca625ab95d5ad
mm/migrate: Use a folio in alloc_migration_target()

This removes an assumption that a large folio is HPAGE_PMD_ORDER
as well as letting us remove the call to prep_transhuge_page()
and a few hidden calls to compound_head().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
mm/migrate.c