X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Flinux%2Fmemcontrol.h;h=27251ed428f7db8adaf54c58b7f9e41deda9048d;hb=69234acee54407962a20bedf90ef9c96326994b5;hp=c83c699a6605b982ca8fbec56f9510d44e2c9cbd;hpb=d57456753787ab158f906f1f8eb58d54a2ccd9f4;p=firefly-linux-kernel-4.4.55.git diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index c83c699a6605..27251ed428f7 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -245,7 +245,6 @@ struct mem_cgroup { * percpu counter. */ struct mem_cgroup_stat_cpu __percpu *stat; - spinlock_t pcp_counter_lock; #if defined(CONFIG_MEMCG_KMEM) && defined(CONFIG_INET) struct cg_proto tcp_mem; @@ -679,8 +678,9 @@ enum { struct list_head *mem_cgroup_cgwb_list(struct mem_cgroup *memcg); struct wb_domain *mem_cgroup_wb_domain(struct bdi_writeback *wb); -void mem_cgroup_wb_stats(struct bdi_writeback *wb, unsigned long *pavail, - unsigned long *pdirty, unsigned long *pwriteback); +void mem_cgroup_wb_stats(struct bdi_writeback *wb, unsigned long *pfilepages, + unsigned long *pheadroom, unsigned long *pdirty, + unsigned long *pwriteback); #else /* CONFIG_CGROUP_WRITEBACK */ @@ -690,7 +690,8 @@ static inline struct wb_domain *mem_cgroup_wb_domain(struct bdi_writeback *wb) } static inline void mem_cgroup_wb_stats(struct bdi_writeback *wb, - unsigned long *pavail, + unsigned long *pfilepages, + unsigned long *pheadroom, unsigned long *pdirty, unsigned long *pwriteback) {