Skip to content

Commit 68a9843

Browse files
Baolin Wangtorvalds
authored andcommitted
mm: migrate: fix the incorrect function name in comments
since commit a98a2f0 ("mm/rmap: split migration into its own function"), the migration ptes establishment has been split into a separate try_to_migrate() function, thus update the related comments. Link: https://lkml.kernel.org/r/5b824bad6183259c916ae6cf42f81d14c6118b06.1629447552.git.baolin.wang@linux.alibaba.com Signed-off-by: Baolin Wang <[email protected]> Reviewed-by: Yang Shi <[email protected]> Reviewed-by: Alistair Popple <[email protected]> Cc: Matthew Wilcox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 2b9b624 commit 68a9843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/migrate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ static int __unmap_and_move(struct page *page, struct page *newpage,
10081008
}
10091009

10101010
/*
1011-
* By try_to_unmap(), page->mapcount goes down to 0 here. In this case,
1011+
* By try_to_migrate(), page->mapcount goes down to 0 here. In this case,
10121012
* we cannot notice that anon_vma is freed while we migrates a page.
10131013
* This get_anon_vma() delays freeing anon_vma pointer until the end
10141014
* of migration. File cache pages are no problem because of page_lock()

0 commit comments

Comments
 (0)