Skip to content

Anon rmap cleanups

David Hildenbrand linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesIn review 5 of 6 applied

Patches in v1 5 of 6 applied

#Subject and filesSizeRepliesApplied
1/6mm/rmap: drop stale comment in page_add_anon_rmap and hugepage_add_anon_rmap()mm/rmap.c+0 -20 repliesApplied
2/6mm/rmap: move SetPageAnonExclusive out of __page_set_anon_rmap()mm/rmap.c+21 -202 repliesApplied
3/6mm/rmap: move folio_test_anon() check out of __folio_set_anon()mm/rmap.c+8 -150 repliesApplied
4/6mm/rmap: warn on new PTE-mapped folios in page_add_anon_rmap()mm/rmap.c+7 -00 repliesApplied
5/6mm/rmap: simplify PageAnonExclusive sanity checks when adding anon rmapmm/rmap.c+6 -81 reply
6/6mm/rmap: pass folio to hugepage_add_anon_rmap()include/linux/rmap.h mm/migrate.c mm/rmap.c+5 -70 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/6] Anon rmap cleanups

Some cleanups around rmap for anon pages. I'm working on more cleanups also around file rmap -- also to handle the "compound" parameter internally only and to let hugetlb use page_add_file_rmap(), but these changes make sense separately.

Cc Andrew Morton <[email protected]>
Cc Mike Kravetz <[email protected]>
Cc Muchun Song <[email protected]>

David Hildenbrand (6):
mm/rmap: drop stale comment in page_add_anon_rmap and
hugepage_add_anon_rmap()
mm/rmap: move SetPageAnonExclusive out of __page_set_anon_rmap() mm/rmap: move folio_test_anon() check out of __folio_set_anon() mm/rmap: warn on new PTE-mapped folios in page_add_anon_rmap() mm/rmap: simplify PageAnonExclusive sanity checks when adding anon
rmap
mm/rmap: pass folio to hugepage_add_anon_rmap()

 include/linux/rmap.h |  2 +-
 mm/migrate.c         |  2 +-
 mm/rmap.c            | 79 +++++++++++++++++++++-----------------------
 3 files changed, 39 insertions(+), 44 deletions(-)
Signature · 1 line
2.41.0