提交 3a7951b4 编写于 作者: K Kirill A. Shutemov 提交者: Linus Torvalds

memcg: mark stat field of mem_cgroup struct as __percpu

It fixes a lot of sparse warnings.
Signed-off-by: NKirill A. Shutemov <kirill@shutemov.name>
Acked-by: NKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: NMichal Hocko <mhocko@suse.cz>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 92ba39a7
......@@ -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().
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册