mbox series

[0/9] Finish two folio conversions

Message ID 20231211162214.2146080-1-willy@infradead.org (mailing list archive)
Headers show
Series Finish two folio conversions | expand

Message

Matthew Wilcox Dec. 11, 2023, 4:22 p.m. UTC
Most callers of page_add_new_anon_rmap() and
lru_cache_add_inactive_or_unevictable() have been converted to their
folio equivalents, but there are still a few stragglers.  There's a
bit of preparatory work in ksm and unuse_pte(), but after that it's
pretty mechanical.

Patch series against next-20231207.

Matthew Wilcox (Oracle) (9):
  mm: Convert ksm_might_need_to_copy() to work on folios
  mm: Simplify the assertions in unuse_pte()
  mm: Convert unuse_pte() to use a folio throughout
  mm: Remove some calls to page_add_new_anon_rmap()
  mm: Remove stale example from comment
  mm: Remove references to page_add_new_anon_rmap in comments
  mm: Convert migrate_vma_insert_page() to use a folio
  mm: Convert collapse_huge_page() to use a folio
  mm: Remove page_add_new_anon_rmap and
    lru_cache_add_inactive_or_unevictable

 include/linux/ksm.h     |  6 ++---
 include/linux/rmap.h    |  2 --
 include/linux/swap.h    |  3 ---
 kernel/events/uprobes.c |  2 +-
 mm/folio-compat.c       | 16 -------------
 mm/khugepaged.c         | 15 ++++++------
 mm/ksm.c                | 21 ++++++++--------
 mm/memory.c             | 10 ++++----
 mm/memremap.c           | 18 ++++----------
 mm/migrate_device.c     | 23 +++++++++---------
 mm/rmap.c               |  4 ++--
 mm/swapfile.c           | 53 ++++++++++++++++++++++-------------------
 mm/userfaultfd.c        |  2 +-
 13 files changed, 76 insertions(+), 99 deletions(-)