On Sun, May 31, 2026 at 09:11:53PM +0200, David Hildenbrand (Arm) wrote: > The whole thp_migration_supported() guard is a bit shaky, right? > > I guess device-private entries currently imply thp_migration_supported(), but > that thp_migration_supported() check is really questionable and should likely > just go away (else if -> else). > > Staring at pte_to_pagemap_entry(), likely we'd also want > > if (softleaf_has_pfn(entry)) > page = softleaf_to_page(entry); > > to prepare for PMD swap entries.
Yes, that is what I was doing for non-present PMDs when implementing the new API [1]. [1] https://lore.kernel.org/linux-mm/[email protected]/ -- Oscar Salvador SUSE Labs

