The patch titled Subject: memcg: writeback: use memcg->cgwb_list directly has been added to the -mm tree. Its filename is memcg-writeback-use-memcg-cgwb_list-directly.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/memcg-writeback-use-memcg-cgwb_list-directly.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/memcg-writeback-use-memcg-cgwb_list-directly.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Wang Long <wanglong19@xxxxxxxxxxx> Subject: memcg: writeback: use memcg->cgwb_list directly mem_cgroup_cgwb_list is a very simple wrapper and it will never be used outside of code under CONFIG_CGROUP_WRITEBACK. so use memcg->cgwb_list directly. Link: http://lkml.kernel.org/r/1524406173-212182-1-git-send-email-wanglong19@xxxxxxxxxxx Signed-off-by: Wang Long <wanglong19@xxxxxxxxxxx> Reviewed-by: Jan Kara <jack@xxxxxxx> Acked-by: Tejun Heo <tj@xxxxxxxxxx> Acked-by: Michal Hocko <mhocko@xxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/memcontrol.h | 1 - mm/backing-dev.c | 4 ++-- mm/memcontrol.c | 5 ----- 3 files changed, 2 insertions(+), 8 deletions(-) diff -puN include/linux/memcontrol.h~memcg-writeback-use-memcg-cgwb_list-directly include/linux/memcontrol.h --- a/include/linux/memcontrol.h~memcg-writeback-use-memcg-cgwb_list-directly +++ a/include/linux/memcontrol.h @@ -1104,7 +1104,6 @@ static inline void dec_lruvec_page_state #ifdef CONFIG_CGROUP_WRITEBACK -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 *pfilepages, unsigned long *pheadroom, unsigned long *pdirty, diff -puN mm/backing-dev.c~memcg-writeback-use-memcg-cgwb_list-directly mm/backing-dev.c --- a/mm/backing-dev.c~memcg-writeback-use-memcg-cgwb_list-directly +++ a/mm/backing-dev.c @@ -555,7 +555,7 @@ static int cgwb_create(struct backing_de memcg = mem_cgroup_from_css(memcg_css); blkcg_css = cgroup_get_e_css(memcg_css->cgroup, &io_cgrp_subsys); blkcg = css_to_blkcg(blkcg_css); - memcg_cgwb_list = mem_cgroup_cgwb_list(memcg); + memcg_cgwb_list = &memcg->cgwb_list; blkcg_cgwb_list = &blkcg->cgwb_list; /* look up again under lock and discard on blkcg mismatch */ @@ -734,7 +734,7 @@ static void cgwb_bdi_unregister(struct b */ void wb_memcg_offline(struct mem_cgroup *memcg) { - struct list_head *memcg_cgwb_list = mem_cgroup_cgwb_list(memcg); + struct list_head *memcg_cgwb_list = &memcg->cgwb_list; struct bdi_writeback *wb, *next; spin_lock_irq(&cgwb_lock); diff -puN mm/memcontrol.c~memcg-writeback-use-memcg-cgwb_list-directly mm/memcontrol.c --- a/mm/memcontrol.c~memcg-writeback-use-memcg-cgwb_list-directly +++ a/mm/memcontrol.c @@ -3576,11 +3576,6 @@ static int mem_cgroup_oom_control_write( #ifdef CONFIG_CGROUP_WRITEBACK -struct list_head *mem_cgroup_cgwb_list(struct mem_cgroup *memcg) -{ - return &memcg->cgwb_list; -} - static int memcg_wb_domain_init(struct mem_cgroup *memcg, gfp_t gfp) { return wb_domain_init(&memcg->cgwb_domain, gfp); _ Patches currently in -mm which might be from wanglong19@xxxxxxxxxxx are memcg-writeback-use-memcg-cgwb_list-directly.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html