diff options
| author | Anshuman Khandual <[email protected]> | 2023-03-02 02:53:49 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-03-28 23:20:11 +0000 |
| commit | 1da28f1b5ab1dd15919e75bb9a47e17912fd756c (patch) | |
| tree | 9c0c133e0eac6014e589b4f33f58f415a290c621 | |
| parent | mm: swap: remove unneeded cgroup_throttle_swaprate() (diff) | |
| download | kernel-1da28f1b5ab1dd15919e75bb9a47e17912fd756c.tar.gz kernel-1da28f1b5ab1dd15919e75bb9a47e17912fd756c.zip | |
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()")'
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Anshuman Khandual <[email protected]>
Reported-by: Christophe Leroy <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Reviewed-by: David Hildenbrand <[email protected]>
Cc: Mike Kravetz <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
| -rw-r--r-- | mm/migrate.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index db3f154446af..afe21c48dc6e 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -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, |
