]> 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>
Thu, 7 Feb 2013 01:26:56 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:44 +0000 (16:46 +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);
 }