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
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 46d8e65..2f496b3 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -670,7 +670,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)
{
@@ -722,6 +722,7 @@ static unsigned long shrink_slab(gfp_t gfp_mask, int nid,
cond_resched();
return freed;
}
+EXPORT_SYMBOL_GPL(shrink_slab);
void drop_slab_node(int nid)
{