]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
memcg: mark stat field of mem_cgroup struct as __percpu
authorKirill A. Shutemov <kirill@shutemov.name>
Thu, 3 May 2012 05:43:59 +0000 (15:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:35 +0000 (15:46 +1000)
It fixes a lot of sparse warnings.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c

index 3abb5c94a329b36eb9283da74779a03b16b58216..5b00e32f10b8c1c1db57994665179fe3ac3af717 100644 (file)
@@ -318,7 +318,7 @@ struct mem_cgroup {
        /*
         * percpu counter.
         */
-       struct mem_cgroup_stat_cpu *stat;
+       struct mem_cgroup_stat_cpu __percpu *stat;
        /*
         * used when a cpu is offlined or other synchronizations
         * See mem_cgroup_read_stat().