Export some APIs

moto_swap.ko need use this APIs

Change-Id: I98e91d6bfadcd931f493a7dbb4447d8d7e9f0a34
Reviewed-on: https://gerrit.mot.com/2749373
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Xiaojun Ji 2023-09-21 14:56:48 +08:00
commit 8686f439ac
4 changed files with 5 additions and 0 deletions

View file

@ -4315,6 +4315,7 @@ int cgroup_add_legacy_cftypes(struct cgroup_subsys *ss, struct cftype *cfts)
return cgroup_add_cftypes(ss, cfts);
}
EXPORT_SYMBOL_GPL(cgroup_add_legacy_cftypes);
/**
* cgroup_file_notify - generate a file modified event for a cgroup_file
* @cfile: target cgroup_file

View file

@ -5044,6 +5044,7 @@ struct mem_cgroup *mem_cgroup_from_id(unsigned short id)
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)
{
struct mem_cgroup_per_node *pn;

View file

@ -3384,6 +3384,7 @@ void si_swapinfo(struct sysinfo *val)
val->totalswap = total_swap_pages + nr_to_be_unused;
spin_unlock(&swap_lock);
}
EXPORT_SYMBOL_GPL(si_swapinfo);
/*
* Verify that a swap entry is valid and increment its swap map count.

View file

@ -3490,6 +3490,8 @@ unsigned long try_to_free_mem_cgroup_pages(struct mem_cgroup *memcg,
return nr_reclaimed;
}
EXPORT_SYMBOL_GPL(try_to_free_mem_cgroup_pages);
#endif
static void age_active_anon(struct pglist_data *pgdat,