mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
LUR: Revert "BACKPORT: mm: remove superfluous __ClearPageActive()"
The LRU function is not compatible with GKI, causing GKI to fail to start, so revert. This reverts commit 5f225d9450f42612a0056e7fec13cfe5e828caac. Change-Id: Ic0e6dca9a27428421d8ad29517a497133138ee3b Reviewed-on: https://gerrit.mot.com/2609774 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
0850000858
commit
f8a0095395
2 changed files with 4 additions and 0 deletions
|
|
@ -419,6 +419,8 @@ void __put_devmap_managed_page(struct page *page)
|
|||
* holds a reference on the page.
|
||||
*/
|
||||
if (count == 1) {
|
||||
/* Clear Active bit in case of parallel mark_page_accessed */
|
||||
__ClearPageActive(page);
|
||||
__ClearPageWaiters(page);
|
||||
|
||||
mem_cgroup_uncharge(page);
|
||||
|
|
|
|||
|
|
@ -829,6 +829,8 @@ void release_pages(struct page **pages, int nr)
|
|||
del_page_from_lru_list(page, lruvec, page_off_lru(page));
|
||||
}
|
||||
|
||||
/* Clear Active bit in case of parallel mark_page_accessed */
|
||||
__ClearPageActive(page);
|
||||
__ClearPageWaiters(page);
|
||||
|
||||
list_add(&page->lru, &pages_to_free);
|
||||
|
|
|
|||
Loading…
Reference in a new issue