Re: [PATCH] memcg: refactor mem_cgroup_resize_limit()

2017-06-04 Thread Yu Zhao
On Fri, Jun 02, 2017 at 10:32:52AM +0300, Nikolay Borisov wrote: > > > On 2.06.2017 02:02, Yu Zhao wrote: > > mem_cgroup_resize_limit() and mem_cgroup_resize_memsw_limit() have > > identical logics. Refactor code so we don't need to keep two pieces > > of code that does same thing. > > > >

Re: [PATCH] memcg: refactor mem_cgroup_resize_limit()

2017-06-04 Thread Yu Zhao
On Fri, Jun 02, 2017 at 10:32:52AM +0300, Nikolay Borisov wrote: > > > On 2.06.2017 02:02, Yu Zhao wrote: > > mem_cgroup_resize_limit() and mem_cgroup_resize_memsw_limit() have > > identical logics. Refactor code so we don't need to keep two pieces > > of code that does same thing. > > > >

Re: [PATCH] memcg: refactor mem_cgroup_resize_limit()

2017-06-03 Thread Vladimir Davydov
On Thu, Jun 01, 2017 at 04:02:12PM -0700, Yu Zhao wrote: > mem_cgroup_resize_limit() and mem_cgroup_resize_memsw_limit() have > identical logics. Refactor code so we don't need to keep two pieces > of code that does same thing. > > Signed-off-by: Yu Zhao > --- >

Re: [PATCH] memcg: refactor mem_cgroup_resize_limit()

2017-06-03 Thread Vladimir Davydov
On Thu, Jun 01, 2017 at 04:02:12PM -0700, Yu Zhao wrote: > mem_cgroup_resize_limit() and mem_cgroup_resize_memsw_limit() have > identical logics. Refactor code so we don't need to keep two pieces > of code that does same thing. > > Signed-off-by: Yu Zhao > --- > mm/memcontrol.c | 71 >

Re: [PATCH] memcg: refactor mem_cgroup_resize_limit()

2017-06-02 Thread Nikolay Borisov
On 2.06.2017 02:02, Yu Zhao wrote: > mem_cgroup_resize_limit() and mem_cgroup_resize_memsw_limit() have > identical logics. Refactor code so we don't need to keep two pieces > of code that does same thing. > > Signed-off-by: Yu Zhao > --- > mm/memcontrol.c | 71 >

Re: [PATCH] memcg: refactor mem_cgroup_resize_limit()

2017-06-02 Thread Nikolay Borisov
On 2.06.2017 02:02, Yu Zhao wrote: > mem_cgroup_resize_limit() and mem_cgroup_resize_memsw_limit() have > identical logics. Refactor code so we don't need to keep two pieces > of code that does same thing. > > Signed-off-by: Yu Zhao > --- > mm/memcontrol.c | 71 >

[PATCH] memcg: refactor mem_cgroup_resize_limit()

2017-06-01 Thread Yu Zhao
mem_cgroup_resize_limit() and mem_cgroup_resize_memsw_limit() have identical logics. Refactor code so we don't need to keep two pieces of code that does same thing. Signed-off-by: Yu Zhao --- mm/memcontrol.c | 71 + 1

[PATCH] memcg: refactor mem_cgroup_resize_limit()

2017-06-01 Thread Yu Zhao
mem_cgroup_resize_limit() and mem_cgroup_resize_memsw_limit() have identical logics. Refactor code so we don't need to keep two pieces of code that does same thing. Signed-off-by: Yu Zhao --- mm/memcontrol.c | 71 + 1 file changed, 11