ANDROID: Allow vendor module to reclaim a memcg

Export try_to_free_mem_cgroup_pages function to allow vendor modules to reclaim a memory cgroup.

Bug: 192052083

Signed-off-by: Liujie Xie <xieliujie@oppo.com>
(cherry picked from commit a8385d61f2)
(cherry picked from commit 1ed025b9a1)

Change-Id: Iec6ef50f5c71c62d0c9aa6de90e56a143dac61c1
Signed-off-by: lvwenhuan <lvwenhuan@oppo.com>
This commit is contained in:
Liujie Xie
2021-06-25 22:21:35 +08:00
committed by Treehugger Robot
parent f627d47d36
commit 3efffff553

View File

@@ -7081,6 +7081,7 @@ unsigned long try_to_free_mem_cgroup_pages(struct mem_cgroup *memcg,
return nr_reclaimed; return nr_reclaimed;
} }
EXPORT_SYMBOL_GPL(try_to_free_mem_cgroup_pages);
#endif #endif
static void kswapd_age_node(struct pglist_data *pgdat, struct scan_control *sc) static void kswapd_age_node(struct pglist_data *pgdat, struct scan_control *sc)