memcg: mark stat field of mem_cgroup struct as __percpu
authorKirill A. Shutemov <[email protected]>
Tue, 29 May 2012 22:06:56 +0000 (15:06 -0700)
committerLinus Torvalds <[email protected]>
Tue, 29 May 2012 23:22:25 +0000 (16:22 -0700)
It fixes a lot of sparse warnings.

Signed-off-by: Kirill A. Shutemov <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memcontrol.c

index 5c56765c848a7816bb89cd9b54977e6f0c5239f1..18becde87577233bd96e64ac7809142a03b12b26 100644 (file)
@@ -304,7 +304,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().