]> 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, 12 Apr 2012 22:52:07 +0000 (08:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 17 Apr 2012 03:47:21 +0000 (13:47 +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 7eda66b781422500212b6fa456542369f727fe7d..a8d386f4be1dbfd29e38bd83174241eb09b07080 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().