ANDROID: vendor_hooks: export shrink_slab
Export shrink_slab to module for do shrink-memory action. Bug: 221768451 Signed-off-by: Peifeng Li <lipeifeng@oppo.com> Change-Id: I5abe9ad419d64999b714d879c228625a243e90d1
This commit is contained in:
@@ -670,7 +670,7 @@ static unsigned long shrink_slab_memcg(gfp_t gfp_mask, int nid,
|
|||||||
*
|
*
|
||||||
* Returns the number of reclaimed slab objects.
|
* 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,
|
struct mem_cgroup *memcg,
|
||||||
int priority)
|
int priority)
|
||||||
{
|
{
|
||||||
@@ -722,6 +722,7 @@ out:
|
|||||||
cond_resched();
|
cond_resched();
|
||||||
return freed;
|
return freed;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(shrink_slab);
|
||||||
|
|
||||||
void drop_slab_node(int nid)
|
void drop_slab_node(int nid)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user