mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
ANDROID: vendor_hooks: export shrink_slab
Export shrink_slab to module for do shrink-memory action. Bug: 221768451 Bug: 234405962 Signed-off-by: Peifeng Li <lipeifeng@oppo.com> Change-Id: I5abe9ad419d64999b714d879c228625a243e90d1
This commit is contained in:
committed by
Carlos Llamas
parent
d1ba6f2de7
commit
8c19c1e07e
@@ -902,7 +902,7 @@ static unsigned long shrink_slab_memcg(gfp_t gfp_mask, int nid,
|
||||
*
|
||||
* Returns the number of reclaimed slab objects.
|
||||
*/
|
||||
static unsigned long shrink_slab(gfp_t gfp_mask, int nid,
|
||||
unsigned long shrink_slab(gfp_t gfp_mask, int nid,
|
||||
struct mem_cgroup *memcg,
|
||||
int priority)
|
||||
{
|
||||
@@ -949,6 +949,7 @@ out:
|
||||
cond_resched();
|
||||
return freed;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(shrink_slab);
|
||||
|
||||
void drop_slab_node(int nid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user