]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
memcg: mark stat field of mem_cgroup struct as __percpu
authorKirill A. Shutemov <kirill@shutemov.name>
Tue, 29 May 2012 22:06:56 +0000 (15:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 May 2012 23:22:25 +0000 (16:22 -0700)
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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().