path: root/mm/migrate.c
diff options
authorYang Shi <>2020-12-14 19:13:02 -0800
committerLinus Torvalds <>2020-12-15 12:13:45 -0800
commitd12b8951ad17cd845c7e674a839af84844954706 (patch)
treee1580c0365241771bedd4c684041179c1f261d5c /mm/migrate.c
parent0060ef3b4e6dd1410da164d48a595eadb2fb02f7 (diff)
mm: truncate_complete_page() does not exist any more
Patch series "mm: misc migrate cleanup and improvement", v3. This patch (of 5): The commit 9f4e41f4717832e ("mm: refactor truncate_complete_page()") refactored truncate_complete_page(), and it is not existed anymore, correct the comment in vmscan and migrate to avoid confusion. Link: Link: Signed-off-by: Yang Shi <> Reviewed-by: Jan Kara <> Cc: Michal Hocko <> Cc: Zi Yan <> Cc: Song Liu <> Cc: Mel Gorman <> Cc: Matthew Wilcox <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'mm/migrate.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index c98b04e0db4e..5cbdfd065ab4 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -1106,7 +1106,7 @@ static int __unmap_and_move(struct page *page, struct page *newpage,
* and treated as swapcache but it has no rmap yet.
* Calling try_to_unmap() against a page->mapping==NULL page will
* trigger a BUG. So handle it here.
- * 2. An orphaned page (see truncate_complete_page) might have
+ * 2. An orphaned page (see truncate_cleanup_page) might have
* fs-private metadata. The page can be picked up due to memory
* offlining. Everywhere else except page reclaim, the page is
* invisible to the vm, so the page can not be migrated. So try to