[PATCH v1 0/3] mm/rmap: convert page_move_anon_rmap() to folio_move_anon_rmap()

David Hildenbrand posted 3 patches 2 years, 3 months ago
include/linux/rmap.h |  2 +-
mm/huge_memory.c     |  3 +-
mm/hugetlb.c         |  6 ++-
mm/memory.c          | 87 +++++++++++++++++++++++---------------------
mm/rmap.c            | 17 ++++-----
5 files changed, 59 insertions(+), 56 deletions(-)
[PATCH v1 0/3] mm/rmap: convert page_move_anon_rmap() to folio_move_anon_rmap()
Posted by David Hildenbrand 2 years, 3 months ago
Convert page_move_anon_rmap() to folio_move_anon_rmap(), letting the
callers handle PageAnonExclusive. I'm including cleanup patch #3 because it
fits into the picture and can be done cleaner by the conversion.

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Suren Baghdasaryan <surenb@google.com>

David Hildenbrand (3):
  mm/rmap: move SetPageAnonExclusive() out of page_move_anon_rmap()
  mm/rmap: convert page_move_anon_rmap() to folio_move_anon_rmap()
  memory: move exclusivity detection in do_wp_page() into
    wp_can_reuse_anon_folio()

 include/linux/rmap.h |  2 +-
 mm/huge_memory.c     |  3 +-
 mm/hugetlb.c         |  6 ++-
 mm/memory.c          | 87 +++++++++++++++++++++++---------------------
 mm/rmap.c            | 17 ++++-----
 5 files changed, 59 insertions(+), 56 deletions(-)

-- 
2.41.0