[PATCH v4 0/5] Fix some cache flush bugs

From: Muchun Song
Date: Tue Feb 08 2022 - 02:36:37 EST


This series focus on fixing cache maintenance.

v4:
- Replace folio_copy() with copy_user_huge_page().
- Update commit message for patch 2.

v3:
- Collect Reviewed-by tag from Zi Yan.
- Fix hugetlb cache maintenance.

v2:
- Collect Reviewed-by tag from Zi Yan.
- Using a for loop instead of the folio variant for backportability.

Muchun Song (5):
mm: thp: fix wrong cache flush in remove_migration_pmd()
mm: fix missing cache flush for all tail pages of compound page
mm: hugetlb: fix missing cache flush in copy_huge_page_from_user()
mm: hugetlb: fix missing cache flush in hugetlb_mcopy_atomic_pte()
mm: replace multiple dcache flush with flush_dcache_folio()

mm/huge_memory.c | 3 ++-
mm/hugetlb.c | 3 ++-
mm/memory.c | 2 ++
mm/migrate.c | 3 +--
4 files changed, 7 insertions(+), 4 deletions(-)

--
2.11.0