diff options
author | Kirill A. Shutemov <kirill@shutemov.name> | 2012-05-29 18:06:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-29 19:22:25 -0400 |
commit | 3a7951b4cf8c6be48e20523b724d9188f6c91ba7 (patch) | |
tree | c87db2590663ec59da24169522d289996b7357d6 /mm/memcontrol.c | |
parent | 92ba39a7acafb4f979fddcd22545603a11c349bb (diff) |
memcg: mark stat field of mem_cgroup struct as __percpu
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>
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r-- | mm/memcontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 5c56765c848a..18becde87577 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -304,7 +304,7 @@ struct mem_cgroup { | |||
304 | /* | 304 | /* |
305 | * percpu counter. | 305 | * percpu counter. |
306 | */ | 306 | */ |
307 | struct mem_cgroup_stat_cpu *stat; | 307 | struct mem_cgroup_stat_cpu __percpu *stat; |
308 | /* | 308 | /* |
309 | * used when a cpu is offlined or other synchronizations | 309 | * used when a cpu is offlined or other synchronizations |
310 | * See mem_cgroup_read_stat(). | 310 | * See mem_cgroup_read_stat(). |