Skip to content

Commit

Permalink
memcg: mark stat field of mem_cgroup struct as __percpu
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kirill A. Shutemov authored and Linus Torvalds committed May 29, 2012
1 parent 92ba39a commit 3a7951b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down

0 comments on commit 3a7951b

Please sign in to comment.