mbox series

[v2,0/2] mm/migrate: optimize migrate_vma_setup() for holes

Message ID 20200710194840.7602-1-rcampbell@nvidia.com (mailing list archive)
Headers show
Series mm/migrate: optimize migrate_vma_setup() for holes | expand

Message

Ralph Campbell July 10, 2020, 7:48 p.m. UTC
A simple optimization for migrate_vma_*() when the source vma is not an
anonymous vma and a new test case to exercise it.
This is based on linux-mm and is for Andrew Morton's tree.

Changes in v2:
Do the same check for vma_is_anonymous() for pte_none().
Don't increment cpages if the page isn't migrating.

Ralph Campbell (2):
  mm/migrate: optimize migrate_vma_setup() for holes
  mm/migrate: add migrate-shared test for migrate_vma_*()

 mm/migrate.c                           | 16 ++++++++++--
 tools/testing/selftests/vm/hmm-tests.c | 35 ++++++++++++++++++++++++++
 2 files changed, 49 insertions(+), 2 deletions(-)