ANDROID: vendor_hooks: bypass shrink slab
Add hooks for bypass shrink slab. Bug: 185951972 Change-Id: I343e02ae5cd6d076d525d0e4bfc09ecdfeda1d7b Signed-off-by: wudean <dean.wu@vivo.com>
This commit is contained in:

committed by
Suren Baghdasaryan

parent
0907114be2
commit
396a6adfd3
@@ -670,6 +670,11 @@ static unsigned long shrink_slab(gfp_t gfp_mask, int nid,
|
||||
{
|
||||
unsigned long ret, freed = 0;
|
||||
struct shrinker *shrinker;
|
||||
bool bypass = false;
|
||||
|
||||
trace_android_vh_shrink_slab_bypass(gfp_mask, nid, memcg, priority, &bypass);
|
||||
if (bypass)
|
||||
return 0;
|
||||
|
||||
/*
|
||||
* The root memcg might be allocated even though memcg is disabled
|
||||
|
Reference in New Issue
Block a user