RFC mm/migration: rework movable_ops page migration (part 1)
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest29 patches 63 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/29 | mm/balloon_compaction: we cannot have isolated pages in the balloon listmm/ | +0 | 1 reply | |
| 2/29 | mm/balloon_compaction: convert balloon_page_delete() to balloon_page_finalize()arch/ drivers/ drivers/ +2 more | +21 | 0 replies | |
| 3/29 | mm/zsmalloc: drop PageIsolated() related VM_BUG_ONsmm/ mm/ | +0 | 3 replies | |
| 4/29 | mm/page_alloc: allow for making page types sticky until freedmm/ | +3 | 9 replies | |
| 5/29 | mm/balloon_compaction: make PageOffline stickyinclude/ | +1 | 4 replies | |
| 6/29 | mm/zsmalloc: make PageZsmalloc() stickymm/ mm/ | +1 | 3 replies | |
| 7/29 | mm/migrate: rename isolate_movable_page() to isolate_movable_ops_page()include/ mm/ mm/ | +32 | 13 replies | |
| 8/29 | mm/migrate: rename putback_movable_folio() to putback_movable_ops_page()mm/ | +24 | 5 replies | |
| 9/29 | mm/migrate: factor out movable_ops page handling into migrate_movable_ops_page()mm/ | +45 | 1 reply | |
| 10/29 | mm/migrate: remove folio_test_movable() and folio_movable_ops()include/ | +0 | 1 reply | |
| 11/29 | mm/migrate: move movable_ops page handling out of move_to_new_folio()mm/ | +28 | 2 replies | |
| 12/29 | mm/zsmalloc: stop using __ClearPageMovable()mm/ | +11 | 0 replies | |
| 13/29 | mm/balloon_compaction: stop using __ClearPageMovable()include/ mm/ | +12 | 2 replies | |
| 14/29 | mm/migrate: remove __ClearPageMovable()include/ mm/ | +0 | 2 replies | |
| 15/29 | mm/migration: remove PageMovable()include/ mm/ mm/ | +10 | 1 reply | |
| 16/29 | mm: rename __PageMovable() to page_has_movable_ops()include/ include/ mm/ +5 more | +19 | 3 replies | |
| 17/29 | mm/page_isolation: drop __folio_test_movable() check for large foliosmm/ | +1 | 1 reply | |
| 18/29 | mm: remove __folio_test_movable()include/ mm/ mm/ | +17 | 2 replies | |
| 19/29 | mm: stop storing migration_ops in page->mappinginclude/ include/ include/ +5 more | +35 | 1 reply | |
| 20/29 | mm: convert "movable" flag in page->mapping to a page flaginclude/ include/ include/ +2 more | +44 | 2 replies | |
| 21/29 | mm: rename PG_isolated to PG_movable_ops_isolatedinclude/ mm/ mm/ | +19 | 1 reply | |
| 22/29 | mm/page-flags: rename PAGE_MAPPING_MOVABLE to PAGE_MAPPING_ANON_KSMinclude/ | +6 | 1 reply | |
| 23/29 | mm/page-alloc: remove PageMappingFlags()include/ mm/ | +3 | 1 reply | |
| 24/29 | mm/page-flags: remove folio_mapping_flags()include/ | +0 | 1 reply | |
| 25/29 | mm: simplify folio_expected_ref_count()include/ | +2 | 1 reply | |
| 26/29 | mm: rename PAGE_MAPPING_* to FOLIO_MAPPING_*fs/ include/ include/ +7 more | +30 | 1 reply | |
| 27/29 | docs/mm: convert from "Non-LRU page migration" to "movable_ops page migration"Documentation/ | +27 | 1 reply | |
| 28/29 | mm/balloon_compaction: "movable_ops" doc updatesinclude/ | +6 | 0 replies | |
| 29/29 | mm/balloon_compaction: provide single balloon_page_insert() and balloon_mapping_gfp_mask()include/ | +15 | 0 replies |
Reviews trailers per patch
21 of 29 patches have a Reviewed-by or Acked-by.
| Patch | Zi Yan | Sergey Senozhatsky | Harry Yoo |
|---|---|---|---|
| 1/29 | A-b | ||
| 2/29 | |||
| 3/29 | A-b | R-b | A-b |
| 4/29 | R-b | A-b | |
| 5/29 | A-b | A-b | |
| 6/29 | A-b | R-b | A-b |
| 7/29 | R-b | ||
| 8/29 | A-b | ||
| 9/29 | |||
| 10/29 | R-b | ||
| 11/29 | R-b | ||
| 12/29 | |||
| 13/29 | |||
| 14/29 | |||
| 15/29 | R-b | ||
| 16/29 | R-b | ||
| 17/29 | R-b | ||
| 18/29 | R-b | ||
| 19/29 | R-b | ||
| 20/29 | |||
| 21/29 | R-b | ||
| 22/29 | R-b | ||
| 23/29 | R-b | ||
| 24/29 | R-b | ||
| 25/29 | R-b | ||
| 26/29 | R-b | ||
| 27/29 | R-b | ||
| 28/29 | |||
| 29/29 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH RFC 00/29] mm/migration: rework movable_ops page migration (part 1)
Based on mm/mm-new.
In the future, as we decouple "struct page" from "struct folio", pages that support "non-lru page migration" -- movable_ops page migration such as memory balloons and zsmalloc -- will no longer be folios. They will not have ->mapping, ->lru, and likely no refcount and no page lock. But they will have flags :)
This is the first part (other parts not written yet) of decoupling movable_ops page migration from folio migration.
In this series, we get rid of the ->mapping usage, and start cleaning up the code + separating it from folio migration.
Migration core will have to be further reworked to not treat movable_ops pages like folios. This is the first step into that direction.
RFC because I only did some light testing with virtio-balloon + zsmalloc page migration, and have to polish some patch descriptions.
David Hildenbrand (29):
mm/balloon_compaction: we cannot have isolated pages in the balloon
list
mm/balloon_compaction: convert balloon_page_delete() to
balloon_page_finalize()
mm/zsmalloc: drop PageIsolated() related VM_BUG_ONs mm/page_alloc: allow for making page types sticky until freed mm/balloon_compaction: make PageOffline sticky mm/zsmalloc: make PageZsmalloc() sticky
mm/migrate: rename isolate_movable_page() to
isolate_movable_ops_page()
mm/migrate: rename putback_movable_folio() to
putback_movable_ops_page()
mm/migrate: factor out movable_ops page handling into
migrate_movable_ops_page()
mm/migrate: remove folio_test_movable() and folio_movable_ops() mm/migrate: move movable_ops page handling out of move_to_new_folio() mm/zsmalloc: stop using __ClearPageMovable() mm/balloon_compaction: stop using __ClearPageMovable() mm/migrate: remove __ClearPageMovable()
mm/migration: remove PageMovable()
mm: rename __PageMovable() to page_has_movable_ops() mm/page_isolation: drop __folio_test_movable() check for large folios
mm: remove __folio_test_movable()
mm: stop storing migration_ops in page->mapping
mm: convert "movable" flag in page->mapping to a page flag
mm: rename PG_isolated to PG_movable_ops_isolated mm/page-flags: rename PAGE_MAPPING_MOVABLE to PAGE_MAPPING_ANON_KSM mm/page-alloc: remove PageMappingFlags()
mm/page-flags: remove folio_mapping_flags()
mm: simplify folio_expected_ref_count()
mm: rename PAGE_MAPPING_* to FOLIO_MAPPING_*
docs/mm: convert from "Non-LRU page migration" to "movable_ops page
migration"
mm/balloon_compaction: "movable_ops" doc updates mm/balloon_compaction: provide single balloon_page_insert() and
balloon_mapping_gfp_mask()
Documentation/mm/page_migration.rst | 39 ++-- arch/powerpc/platforms/pseries/cmm.c | 2 +- drivers/misc/vmw_balloon.c | 3 +- drivers/virtio/virtio_balloon.c | 4 +- fs/proc/page.c | 4 +- include/linux/balloon_compaction.h | 90 ++++----- include/linux/fs.h | 2 +- include/linux/migrate.h | 42 +---- include/linux/mm.h | 4 +- include/linux/mm_types.h | 1 - include/linux/page-flags.h | 104 +++++++---- include/linux/pagemap.h | 2 +- include/linux/zsmalloc.h | 2 + mm/balloon_compaction.c | 21 ++- mm/compaction.c | 44 +---- mm/gup.c | 4 +- mm/internal.h | 2 +- mm/ksm.c | 4 +- mm/memory-failure.c | 4 +- mm/memory_hotplug.c | 8 +- mm/migrate.c | 269 +++++++++++++++------------ mm/page_alloc.c | 12 +- mm/page_isolation.c | 12 +- mm/rmap.c | 16 +- mm/util.c | 6 +- mm/vmscan.c | 6 +- mm/zpdesc.h | 15 +- mm/zsmalloc.c | 29 ++- 28 files changed, 361 insertions(+), 390 deletions(-)
base-commit: 21f39cc0346ea2081a83f0469995144d75d23075
Signature · 1 line
2.49.0