ANDROID: vendor_hook: Add hook in migrate_page_states()

Provide a vendor hook to copy the status whether the page need to be
reclaimed to a specified swap location.

Bug: 234214858
Signed-off-by: Bing Han <bing.han@transsion.com>
Change-Id: I1a451b40407718900b56de6ed17b7fd5ef56da01
This commit is contained in:
Bing Han
2022-06-10 13:38:38 +08:00
committed by Treehugger Robot
parent 89a247a638
commit 5bc9b10c45
3 changed files with 6 additions and 0 deletions

View File

@@ -587,6 +587,8 @@ void migrate_page_states(struct page *newpage, struct page *page)
{
int cpupid;
trace_android_vh_migrate_page_states(page, newpage);
if (PageError(page))
SetPageError(newpage);
if (PageReferenced(page))