mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 13:37:36 +02:00
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:
parent
5aec776ef8
commit
af699fd6a2
|
|
@ -1352,8 +1352,8 @@ 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;
|
||||||
if (!was_swapbacked && PageSwapBacked(page))
|
if (!was_swapbacked && PageSwapBacked(page))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user