]> 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>
Wed, 25 Apr 2012 01:03:46 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:26 +0000 (15:17 +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 0c6d3a9a363a66493107e700b4ceca4a6c20fb57..0a91ae3b6940ee7e318ec6e6363031f076b2fc4e 100644 (file)
@@ -308,7 +308,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().