Re: [PATCH 4.2 25/54] memcg: convert threshold to bytes

2015-10-27 Thread Michal Hocko
On Sun 25-10-15 17:32:10, Michal Hocko wrote: > On Sat 24-10-15 14:46:58, Ben Hutchings wrote: > [...] > > > --- a/mm/memcontrol.c > > > +++ b/mm/memcontrol.c > > > @@ -3687,6 +3687,7 @@ static int __mem_cgroup_usage_register_e > > >  >> ret = page_counter_memparse(args, "-1", ); > > >  >

Re: [PATCH 4.2 25/54] memcg: convert threshold to bytes

2015-10-27 Thread Michal Hocko
On Sun 25-10-15 17:32:10, Michal Hocko wrote: > On Sat 24-10-15 14:46:58, Ben Hutchings wrote: > [...] > > > --- a/mm/memcontrol.c > > > +++ b/mm/memcontrol.c > > > @@ -3687,6 +3687,7 @@ static int __mem_cgroup_usage_register_e > > >  >> ret = page_counter_memparse(args, "-1", ); > > >  >

Re: [PATCH 4.2 25/54] memcg: convert threshold to bytes

2015-10-25 Thread Michal Hocko
On Sat 24-10-15 14:46:58, Ben Hutchings wrote: [...] > > --- a/mm/memcontrol.c > > +++ b/mm/memcontrol.c > > @@ -3687,6 +3687,7 @@ static int __mem_cgroup_usage_register_e > >  > > ret = page_counter_memparse(args, "-1", ); > >  > > if (ret) > >  > > > return ret; > > +> > threshold <<=

Re: [PATCH 4.2 25/54] memcg: convert threshold to bytes

2015-10-25 Thread Michal Hocko
On Sat 24-10-15 14:46:58, Ben Hutchings wrote: [...] > > --- a/mm/memcontrol.c > > +++ b/mm/memcontrol.c > > @@ -3687,6 +3687,7 @@ static int __mem_cgroup_usage_register_e > >  > > ret = page_counter_memparse(args, "-1", ); > >  > > if (ret) > >  > > > return ret; > > +> > threshold <<=

Re: [PATCH 4.2 25/54] memcg: convert threshold to bytes

2015-10-23 Thread Ben Hutchings
On Fri, 2015-10-23 at 10:45 -0700, Greg Kroah-Hartman wrote: > 4.2-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Shaohua Li > > commit 424cdc14138088ada1b0e407a2195b2783c6e5ef upstream. > > page_counter_memparse() returns pages for

[PATCH 4.2 25/54] memcg: convert threshold to bytes

2015-10-23 Thread Greg Kroah-Hartman
4.2-stable review patch. If anyone has any objections, please let me know. -- From: Shaohua Li commit 424cdc14138088ada1b0e407a2195b2783c6e5ef upstream. page_counter_memparse() returns pages for the threshold, while mem_cgroup_usage() returns bytes for memory usage. Convert

[PATCH 4.2 25/54] memcg: convert threshold to bytes

2015-10-23 Thread Greg Kroah-Hartman
4.2-stable review patch. If anyone has any objections, please let me know. -- From: Shaohua Li commit 424cdc14138088ada1b0e407a2195b2783c6e5ef upstream. page_counter_memparse() returns pages for the threshold, while mem_cgroup_usage() returns bytes for memory

Re: [PATCH 4.2 25/54] memcg: convert threshold to bytes

2015-10-23 Thread Ben Hutchings
On Fri, 2015-10-23 at 10:45 -0700, Greg Kroah-Hartman wrote: > 4.2-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Shaohua Li > > commit 424cdc14138088ada1b0e407a2195b2783c6e5ef upstream. > > page_counter_memparse() returns