mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
mm/huge_memory: page_add_anon_rmap() -> folio_add_anon_rmap_pmd()
Let's convert remove_migration_pmd(). No need to set RMAP_COMPOUND, that we will remove soon. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: David Hildenbrand <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Cc: Muchun Song <[email protected]> Cc: Muchun Song <[email protected]> Cc: Peter Xu <[email protected]> Cc: Ryan Roberts <[email protected]> Cc: Yin Fengwei <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
This commit is contained in:
committed by
Andrew Morton
parent
91b2978a34
commit
395db7b190
+2
-2
@@ -3611,12 +3611,12 @@ void remove_migration_pmd(struct page_vma_mapped_walk *pvmw, struct page *new)
|
||||
pmde = pmd_mkdirty(pmde);
|
||||
|
||||
if (folio_test_anon(folio)) {
|
||||
rmap_t rmap_flags = RMAP_COMPOUND;
|
||||
rmap_t rmap_flags = RMAP_NONE;
|
||||
|
||||
if (!is_readable_migration_entry(entry))
|
||||
rmap_flags |= RMAP_EXCLUSIVE;
|
||||
|
||||
page_add_anon_rmap(new, vma, haddr, rmap_flags);
|
||||
folio_add_anon_rmap_pmd(folio, new, vma, haddr, rmap_flags);
|
||||
} else {
|
||||
folio_add_file_rmap_pmd(folio, new, vma);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user