ANDROID: vendor_hook: skip trace_android_vh_page_trylock_set when ignore_references is true
Avoid async-reclaim to cause to reclaim-delay when ignore_references is true. Bug: 240003372 Signed-off-by: Peifeng Li <lipeifeng@oppo.com> Change-Id: Iaf50bd4ac53f748da0dac93324c6d94de11e01e9
This commit is contained in:

committed by
Suren Baghdasaryan

parent
5aec776ef8
commit
af699fd6a2
@@ -1352,7 +1352,7 @@ static unsigned int shrink_page_list(struct list_head *page_list,
|
|||||||
|
|
||||||
if (unlikely(PageTransHuge(page)))
|
if (unlikely(PageTransHuge(page)))
|
||||||
flags |= TTU_SPLIT_HUGE_PMD;
|
flags |= TTU_SPLIT_HUGE_PMD;
|
||||||
|
if (!ignore_references)
|
||||||
trace_android_vh_page_trylock_set(page);
|
trace_android_vh_page_trylock_set(page);
|
||||||
if (!try_to_unmap(page, flags)) {
|
if (!try_to_unmap(page, flags)) {
|
||||||
stat->nr_unmap_fail += nr_pages;
|
stat->nr_unmap_fail += nr_pages;
|
||||||
|
Reference in New Issue
Block a user