mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
ANDROID: vendor_hooks: export shrink_slab
Export shrink_slab to module for do shrink-memory action. Bug: 363907036 Change-Id: Ia96e6595186927c1fe31a6504675b8762154c0a6 Signed-off-by: huangshaobo1 <huangshaobo1@xiaomi.corp-partner.google.com>
This commit is contained in:
committed by
Treehugger Robot
parent
8a0fa49a77
commit
09ab235661
@@ -994,7 +994,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)
|
||||
{
|
||||
@@ -1047,6 +1047,8 @@ out:
|
||||
return freed;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL_GPL(shrink_slab);
|
||||
|
||||
static void drop_slab_node(int nid)
|
||||
{
|
||||
unsigned long freed;
|
||||
|
||||
Reference in New Issue
Block a user