mm-migrate-remove-unnecessary-is_zone_device_page-check.patch removed from -mm tree
The patch titled
Subject: mm/migrate: remove unnecessary is_zone_device_page() check
has been removed from the -mm tree. Its filename was
mm-migrate-remove-unnecessary-is_zone_device_page-check.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Ralph Campbell <[email protected]>
Subject: mm/migrate: remove unnecessary is_zone_device_page() check
Patch series "mm/migrate: preserve soft dirty in remove_migration_pte()".
I happened to notice this from code inspection after seeing Alistair Popple's patch ("mm/rmap: Fixup copying of soft dirty and uffd ptes").
This patch (of 2):
The check for is_zone_device_page() and is_device_private_page() is unnecessary since the latter is sufficient to determine if the page is a device private page. Simplify the code for easier reading.
---
mm/migrate.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
mm/migrate.c renamed from mm/migrate.c~mm-migrate-remove-unnecessary-is_zone_device_page-check +5 -7
@@ -246,13 +246,11 @@ static bool remove_migration_pte(structelse if (pte_swp_uffd_wp (*pvmw.pte)) pte =pte_mkuffd_wp (pte); -if (unlikely (is_zone_device_page (new))) { -if (is_device_private_page (new)) { - entry =make_device_private_entry (new,pte_write (pte)); - pte =swp_entry_to_pte (entry); -if (pte_swp_uffd_wp (*pvmw.pte)) - pte =pte_swp_mkuffd_wp (pte); - } +if (unlikely (is_device_private_page (new))) { + entry =make_device_private_entry (new,pte_write (pte)); + pte =swp_entry_to_pte (entry); +if (pte_swp_uffd_wp (*pvmw.pte)) + pte =pte_swp_mkuffd_wp (pte); }#ifdef CONFIG_HUGETLB_PAGE
_
Patches currently in -mm which might be from [email protected] are
mm-thp-fix-__split_huge_pmd_locked-for-migration-pmd.patch mm-test-use-the-new-skip-macro.patch mm-migrate-remove-cpages-in-migrate_vma_finalize.patch mm-migrate-remove-obsolete-comment-about-device-public.patch