]> git.hungrycats.org Git - linux/commit
fs/proc/task_mmu: do not warn on seeing non-migration pmd entry
authorDev Jain <dev.jain@arm.com>
Thu, 4 Jun 2026 05:53:05 +0000 (05:53 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 9 Jun 2026 01:21:32 +0000 (18:21 -0700)
commitcd1fc0e3c1f67c0c31dfc215e5d9b771133dedc0
treecf696f562e6f8d118ccf93f37a583a32228f7938
parent8198657c74170ea78808d1f1d886c7d35fd3694e
fs/proc/task_mmu: do not warn on seeing non-migration pmd entry

Patch series "mm/hmm: A fix and a selftest", v3.

Patch 1 fixes a stale warning present from the time when only migration
softleaf entries were supported at the PMD level.

Patch 2 adds some code into hmm-tests.c which exercises the pagemap path
for PMD device-private entries.

This patch (of 2):

pagemap_pmd_range_thp() warns if a non-present PMD is not a migration
entry.  This became false once device-private entries at the PMD level
were added.

Therefore, remove the stale migration-only assertion.

Link: https://lore.kernel.org/20260604055308.1947679-1-dev.jain@arm.com
Link: https://lore.kernel.org/20260604055308.1947679-2-dev.jain@arm.com
Fixes: a30b48bf1b24 ("mm/migrate_device: implement THP migration of zone device pages")
Signed-off-by: Dev Jain <dev.jain@arm.com>
Reviewed-by: Balbir Singh <balbirs@nvidia.com>
Reviewed-by: Lorenzo Stoakes <ljs@kernel.org>
Tested-by: Lorenzo Stoakes <ljs@kernel.org>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed-by: Oscar Salvador (SUSE) <osalvador@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/task_mmu.c