Re: [PATCH] memcg: writeback: use memcg->cgwb_list directly

2018-04-22 Thread Wang Long
On 22/4/2018 8:43 PM, Michal Hocko wrote: On Sun 22-04-18 01:50:57, Jan Kara wrote: On Sat 21-04-18 21:29:41, Wang Long wrote: Signed-off-by: Wang Long Yeah, looks good. I guess it was originally intended to avoid compilation errors if CONFIG_CGROUP_WRITEBACK was disabled. But it doesn't se

Re: [PATCH] memcg: writeback: use memcg->cgwb_list directly

2018-04-22 Thread Michal Hocko
On Sun 22-04-18 01:50:57, Jan Kara wrote: > On Sat 21-04-18 21:29:41, Wang Long wrote: > > Signed-off-by: Wang Long > > Yeah, looks good. I guess it was originally intended to avoid compilation > errors if CONFIG_CGROUP_WRITEBACK was disabled. But it doesn't seem likely > we'll ever need that lis

Re: [PATCH] memcg: writeback: use memcg->cgwb_list directly

2018-04-21 Thread Jan Kara
On Sat 21-04-18 21:29:41, Wang Long wrote: > Signed-off-by: Wang Long Yeah, looks good. I guess it was originally intended to avoid compilation errors if CONFIG_CGROUP_WRITEBACK was disabled. But it doesn't seem likely we'll ever need that list outside of code under CONFIG_CGROUP_WRITEBACK. So yo

[PATCH] memcg: writeback: use memcg->cgwb_list directly

2018-04-21 Thread Wang Long
Signed-off-by: Wang Long --- include/linux/memcontrol.h | 1 - mm/backing-dev.c | 4 ++-- mm/memcontrol.c| 5 - 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index d99b71b..c0056e0 100644 --- a/incl