linux/Documentation/vm
Alistair Popple ab09243aa9 mm/migrate.c: remove MIGRATE_PFN_LOCKED
MIGRATE_PFN_LOCKED is used to indicate to migrate_vma_prepare() that a
source page was already locked during migrate_vma_collect().  If it
wasn't then the a second attempt is made to lock the page.  However if
the first attempt failed it's unlikely a second attempt will succeed,
and the retry adds complexity.  So clean this up by removing the retry
and MIGRATE_PFN_LOCKED flag.

Destination pages are also meant to have the MIGRATE_PFN_LOCKED flag
set, but nothing actually checks that.

Link: https://lkml.kernel.org/r/20211025041608.289017-1-apopple@nvidia.com
Signed-off-by: Alistair Popple <apopple@nvidia.com>
Reviewed-by: Ralph Campbell <rcampbell@nvidia.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Jerome Glisse <jglisse@redhat.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Zi Yan <ziy@nvidia.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-11-11 09:34:35 -08:00
..
damon Docs/DAMON: document physical memory monitoring support 2021-11-06 13:30:45 -07:00
.gitignore
active_mm.rst
arch_pgtable_helpers.rst
balance.rst
cleancache.rst
free_page_reporting.rst
frontswap.rst
highmem.rst
hmm.rst mm/migrate.c: remove MIGRATE_PFN_LOCKED 2021-11-11 09:34:35 -08:00
hugetlbfs_reserv.rst
hwpoison.rst doc: hwpoison: correct the support for hugepage 2021-09-03 09:58:15 -07:00
index.rst Documentation/vm: move user guides to admin-guide/mm/ 2021-11-06 13:30:44 -07:00
ksm.rst
memory-model.rst docs: remove description of DISCONTIGMEM 2021-06-29 10:53:55 -07:00
mmu_notifier.rst
numa.rst
overcommit-accounting.rst
page_frags.rst
page_migration.rst Doc: page_migration: fix numbering for non-LRU movable flags 2021-09-14 14:54:01 -06:00
page_owner.rst tools/vm/page_owner_sort.c: count and sort by mem 2021-11-06 13:30:40 -07:00
remap_file_pages.rst
slub.rst mm/slub: clarify verification reporting 2021-06-16 09:24:42 -07:00
split_page_table_lock.rst
transhuge.rst mm: gup: remove FOLL_SPLIT 2021-04-30 11:20:37 -07:00
unevictable-lru.rst mm/rmap: split try_to_munlock from try_to_unmap 2021-07-01 11:06:03 -07:00
z3fold.rst
zsmalloc.rst