]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
memcg-reduce-the-size-of-struct-memcg-244-fold-fix-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 20 Feb 2013 02:14:45 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:49 +0000 (16:52 +1100)
oops

Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Glauber Costa <glommer@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c

index 9e94bbbd3a6772f66a9b919790cfb267e2de4f5f..ae0433885b69104130421a2a4fca9ff6bf709e01 100644 (file)
@@ -363,7 +363,7 @@ struct mem_cgroup {
        struct mem_cgroup_lru_info info;
 };
 
-static inline size_t memcg_size(void)
+static size_t memcg_size(void)
 {
        return sizeof(struct mem_cgroup) +
                nr_node_ids * sizeof(struct mem_cgroup_per_node);
@@ -381,7 +381,7 @@ enum {
                ((1 << KMEM_ACCOUNTED_ACTIVE) | (1 << KMEM_ACCOUNTED_ACTIVATED))
 
 #ifdef CONFIG_MEMCG_KMEM
-static void memcg_kmem_set_active(struct mem_cgroup *memcg)
+static inline void memcg_kmem_set_active(struct mem_cgroup *memcg)
 {
        set_bit(KMEM_ACCOUNTED_ACTIVE, &memcg->kmem_account_flags);
 }