memcg: remove pcp_counter_lock
Commit 733a572e66
("memcg: make mem_cgroup_read_{stat|event}() iterate
possible cpus instead of online") removed the last use of the per memcg
pcp_counter_lock but forgot to remove the variable.
Kill the vestigial variable.
Signed-off-by: Greg Thelen <gthelen@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
54aea45429
commit
ef510194ce
|
@ -242,7 +242,6 @@ struct mem_cgroup {
|
||||||
* percpu counter.
|
* percpu counter.
|
||||||
*/
|
*/
|
||||||
struct mem_cgroup_stat_cpu __percpu *stat;
|
struct mem_cgroup_stat_cpu __percpu *stat;
|
||||||
spinlock_t pcp_counter_lock;
|
|
||||||
|
|
||||||
#if defined(CONFIG_MEMCG_KMEM) && defined(CONFIG_INET)
|
#if defined(CONFIG_MEMCG_KMEM) && defined(CONFIG_INET)
|
||||||
struct cg_proto tcp_mem;
|
struct cg_proto tcp_mem;
|
||||||
|
|
|
@ -4185,7 +4185,6 @@ static struct mem_cgroup *mem_cgroup_alloc(void)
|
||||||
if (memcg_wb_domain_init(memcg, GFP_KERNEL))
|
if (memcg_wb_domain_init(memcg, GFP_KERNEL))
|
||||||
goto out_free_stat;
|
goto out_free_stat;
|
||||||
|
|
||||||
spin_lock_init(&memcg->pcp_counter_lock);
|
|
||||||
return memcg;
|
return memcg;
|
||||||
|
|
||||||
out_free_stat:
|
out_free_stat:
|
||||||
|
|
Loading…
Reference in New Issue