ANDROID: Export memcg functions to allow module to add new files
Export cgroup_add_legacy_cftypes and a helper function to allow vendor module to expose additional files in the memory cgroup hierarchy. Bug: 192052083 Signed-off-by: Liujie Xie <xieliujie@oppo.com> Change-Id: Ie2b936b3e77c7ab6d740d1bb6d70e03c70a326a7
This commit is contained in:

committed by
Suren Baghdasaryan

parent
46bf3b94e7
commit
f41a95eadc
@@ -5187,6 +5187,7 @@ struct mem_cgroup *mem_cgroup_from_id(unsigned short id)
|
||||
WARN_ON_ONCE(!rcu_read_lock_held());
|
||||
return idr_find(&mem_cgroup_idr, id);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(mem_cgroup_from_id);
|
||||
|
||||
static int alloc_mem_cgroup_per_node_info(struct mem_cgroup *memcg, int node)
|
||||
{
|
||||
|
Reference in New Issue
Block a user