Re: [PATCH] fs/proc/task_mmu: do not warn on seeing non-migration pmd entry
From: Oscar Salvador (SUSE)
Date: Tue Jun 02 2026 - 00:20:59 EST
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/20260525165528.184397-5-osalvador@xxxxxxx/
--
Oscar Salvador
SUSE Labs