Commit df421ff0 authored by Peifeng Li's avatar Peifeng Li Committed by Carlos Llamas
Browse files

ANDROID: vendor_hooks: Add hooks to for free_unref_page_commit



Provide a vendor hook to skip cma-pages to add in pcplist when
free_unref_page_commit.

The patch is revelant to skip drain_all_pages in alloc_contig_range,
the revelant hooks is android_vh_cma_drain_all_pages_bypass
which is to avoid to delay in drain pcppages when drain_all_pages.

In most case, pcp->high is small so that free-pages with other mt_types
can also fill with pcplist full.

Bug: 224732340
Bug: 231802812
Signed-off-by: default avatarPeifeng Li <lipeifeng@oppo.com>
Change-Id: Ifdeeed9f8934d87671ec3fa6787a02675b993082
(cherry picked from commit cb7c1a4c)
Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
parent 1926a1db
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment