summaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorVladimir Davydov <vdavydov@parallels.com>2014-01-22 00:49:42 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-22 01:19:45 +0100
commit2753b35bcd3156727138cd2305b825611a571a3f (patch)
tree85501af780d64392cd696d9da3782f8788deea7a /mm/memcontrol.c
parentmemcg: fix kmem_account_flags check in memcg_can_account_kmem() (diff)
downloadlinux-2753b35bcd3156727138cd2305b825611a571a3f.tar.xz
linux-2753b35bcd3156727138cd2305b825611a571a3f.zip
memcg: make memcg_update_cache_sizes() static
This function is not used outside of memcontrol.c so make it static. Signed-off-by: Vladimir Davydov <vdavydov@parallels.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Michal Hocko <mhocko@suse.cz> Cc: Balbir Singh <bsingharora@gmail.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--mm/memcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 3065fa80251d..08541f680d90 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -3087,7 +3087,7 @@ int memcg_cache_id(struct mem_cgroup *memcg)
* But when we create a new cache, we can call this as well if its parent
* is kmem-limited. That will have to hold set_limit_mutex as well.
*/
-int memcg_update_cache_sizes(struct mem_cgroup *memcg)
+static int memcg_update_cache_sizes(struct mem_cgroup *memcg)
{
int num, ret;