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:

committed by
Treehugger Robot

parent
89a247a638
commit
5bc9b10c45
@@ -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))
|
||||
|
Reference in New Issue
Block a user