On 18 Jun 2025, at 13:40, David Hildenbrand wrote: > Now that PAGE_MAPPING_MOVABLE is gone, we can simplify and rely on the > folio_test_anon() test only. > > ... but staring at the users, this function should never even have been > called on movable_ops pages. E.g., > * __buffer_migrate_folio() does not make sense for them > * folio_migrate_mapping() does not make sense for them > * migrate_huge_page_move_mapping() does not make sense for them > * __migrate_folio() does not make sense for them > * ... and khugepaged should never stumble over them > > Let's simply refuse typed pages (which includes slab) except hugetlb, > and WARN. > > Signed-off-by: David Hildenbrand <da...@redhat.com> > --- > include/linux/mm.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Zi Yan <z...@nvidia.com> -- Best Regards, Yan, Zi
- [PATCH RFC 21/29] mm: rename PG_isolated to PG_movable_o... David Hildenbrand
- [PATCH RFC 22/29] mm/page-flags: rename PAGE_MAPPING_MOV... David Hildenbrand
- [PATCH RFC 23/29] mm/page-alloc: remove PageMappingFlags... David Hildenbrand
- [PATCH RFC 24/29] mm/page-flags: remove folio_mapping_fl... David Hildenbrand
- [PATCH RFC 25/29] mm: simplify folio_expected_ref_count(... David Hildenbrand
- Re: [PATCH RFC 25/29] mm: simplify folio_expected_r... Zi Yan
- [PATCH RFC 26/29] mm: rename PAGE_MAPPING_* to FOLIO_MAP... David Hildenbrand
- [PATCH RFC 27/29] docs/mm: convert from "Non-LRU pa... David Hildenbrand
- [PATCH RFC 28/29] mm/balloon_compaction: "movable_o... David Hildenbrand
- [PATCH RFC 29/29] mm/balloon_compaction: provide single ... David Hildenbrand
- [PATCH RFC 14/29] mm/migrate: remove __ClearPageMovable(... David Hildenbrand
- Re: [PATCH RFC 14/29] mm/migrate: remove __ClearPag... Zi Yan
- Re: [PATCH RFC 14/29] mm/migrate: remove __Clea... David Hildenbrand
- [PATCH RFC 09/29] mm/migrate: factor out movable_ops pag... David Hildenbrand