mm/migrate: Drop pte_mkhuge() in remove_migration_pte()
Subsystems (2)
PATCH 1/1 mm/migrate: Drop pte_mkhuge() in remove_migration_pte()
Since the following commit, arch_make_huge_pte() should be used directly in generic memory subsystem as a platform provided page table helper, instead of pte_mkhuge(). This just drops pte_mkhuge() from remove_migration_pte(), which has now become redundant.
'commit 16785bd77431 ("mm: merge pte_mkhuge() call into arch_make_huge_pte()")'
---
This applies on latest mainline.
mm/migrate.c | 1 - 1 file changed, 1 deletion(-)
mm/migrate.c +0 -1
@@ -249,7 +249,6 @@ static bool remove_migration_pte(struct folio *folio,if (folio_test_hugetlb (folio)) {unsigned int shift =huge_page_shift (hstate_vma (vma)); - pte =pte_mkhuge (pte); pte =arch_make_huge_pte (pte, shift, vma->vm_flags);if (folio_test_anon (folio)) hugepage_add_anon_rmap(new, vma, pvmw.address,
Signature · 1 line
2.30.2
Quoted 24 lines · Anshuman Khandual
Since the following commit,
arch_make_huge_pte()should be used directly in generic memory subsystem as a platform provided page table helper, instead ofpte_mkhuge(). This just dropspte_mkhuge()fromremove_migration_pte(), which has now become redundant.'commit
16785bd77431("mm: mergepte_mkhuge()call intoarch_make_huge_pte()")'Cc Andrew Morton <[email protected]>Reported-by Christophe Leroy <[email protected]>Signed-off-by Anshuman Khandual <[email protected]>---
This applies on latest mainline.mm/migrate.c | 1 - 1 file changed, 1 deletion(-)mm/migrate.c +0
-0
mm/migrate.c static bool remove_migration_pte(struct folio *folio, · line 254
Quoted 7 lines
mm/migrate.c +0
-1@@ -249,7 +249,6 @@ static bool remove_migration_pte(struct folio *folio,if (folio_test_hugetlb (folio)) {unsigned int shift =huge_page_shift (hstate_vma (vma)); - pte =pte_mkhuge (pte); pte =arch_make_huge_pte (pte, shift, vma->vm_flags);if (folio_test_anon (folio)) hugepage_add_anon_rmap(new, vma, pvmw.address,
Signature · 3 lines
Thanks, David / dhildenb