Displaying 4 results from an estimated 4 matches for "make_migration_entry".
2019 Jul 29
1
[PATCH 9/9] mm: remove the MIGRATE_PFN_WRITE flag
...(pte_write(pte))
> + writable = true;
> }
>
> /* FIXME support THP */
> @@ -2284,8 +2286,7 @@ static int migrate_vma_collect_pmd(pmd_t *pmdp,
> ptep_get_and_clear(mm, addr, ptep);
>
> /* Setup special migration page table entry */
> - entry = make_migration_entry(page, mpfn &
> - MIGRATE_PFN_WRITE);
> + entry = make_migration_entry(page, writable);
> swp_pte = swp_entry_to_pte(entry);
> if (pte_soft_dirty(pte))
> swp_pte = pte_swp_mksoft_dirty(swp_pte);
>
MIGRATE_PFN_WRITE may mot being used but that seems...
2019 Jul 29
0
[PATCH 9/9] mm: remove the MIGRATE_PFN_WRITE flag
...n |= pte_write(pte) ? MIGRATE_PFN_WRITE : 0;
+ if (pte_write(pte))
+ writable = true;
}
/* FIXME support THP */
@@ -2284,8 +2286,7 @@ static int migrate_vma_collect_pmd(pmd_t *pmdp,
ptep_get_and_clear(mm, addr, ptep);
/* Setup special migration page table entry */
- entry = make_migration_entry(page, mpfn &
- MIGRATE_PFN_WRITE);
+ entry = make_migration_entry(page, writable);
swp_pte = swp_entry_to_pte(entry);
if (pte_soft_dirty(pte))
swp_pte = pte_swp_mksoft_dirty(swp_pte);
--
2.20.1
2019 Jul 29
2
[PATCH 9/9] mm: remove the MIGRATE_PFN_WRITE flag
...+ if (pte_write(pte))
> + writable = true;
> }
>
> /* FIXME support THP */
> @@ -2284,8 +2286,7 @@ static int migrate_vma_collect_pmd(pmd_t *pmdp,
> ptep_get_and_clear(mm, addr, ptep);
>
> /* Setup special migration page table entry */
> - entry = make_migration_entry(page, mpfn &
> - MIGRATE_PFN_WRITE);
> + entry = make_migration_entry(page, writable);
> swp_pte = swp_entry_to_pte(entry);
> if (pte_soft_dirty(pte))
> swp_pte = pte_swp_mksoft_dirty(swp_pte);
> --
> 2.20.1
>
2019 Jul 29
24
turn the hmm migrate_vma upside down
Hi Jérôme, Ben and Jason,
below is a series against the hmm tree which starts revamping the
migrate_vma functionality. The prime idea is to export three slightly
lower level functions and thus avoid the need for migrate_vma_ops
callbacks.
Diffstat:
4 files changed, 285 insertions(+), 602 deletions(-)
A git tree is also available at:
git://git.infradead.org/users/hch/misc.git