Re: [PATCH] mm: memcontrol: fix order calculation in try_charge()

2015-09-18 Thread Johannes Weiner
On Tue, Sep 15, 2015 at 02:05:57PM +0200, Jerome Marchand wrote: > Since commit <6539cc05386> (mm: memcontrol: fold mem_cgroup_do_charge()), > the order to pass to mem_cgroup_oom() is calculated by passing the number > of pages to get_order() instead of the expected size in bytes. AFAICT, > it onl

Re: [PATCH] mm: memcontrol: fix order calculation in try_charge()

2015-09-17 Thread Michal Hocko
[CC Andrew - the patch was posted here http://lkml.kernel.org/r/1442318757-7141-1-git-send-email-jmarchan%40redhat.com] On Tue 15-09-15 15:56:23, Michal Hocko wrote: > On Tue 15-09-15 14:05:57, Jerome Marchand wrote: > > Since commit <6539cc05386> (mm: memcontrol: fold mem_cgroup_do_charge()), > >

Re: [PATCH] mm: memcontrol: fix order calculation in try_charge()

2015-09-15 Thread Michal Hocko
On Tue 15-09-15 14:05:57, Jerome Marchand wrote: > Since commit <6539cc05386> (mm: memcontrol: fold mem_cgroup_do_charge()), > the order to pass to mem_cgroup_oom() is calculated by passing the number > of pages to get_order() instead of the expected size in bytes. AFAICT, > it only affects the va

[PATCH] mm: memcontrol: fix order calculation in try_charge()

2015-09-15 Thread Jerome Marchand
Since commit <6539cc05386> (mm: memcontrol: fold mem_cgroup_do_charge()), the order to pass to mem_cgroup_oom() is calculated by passing the number of pages to get_order() instead of the expected size in bytes. AFAICT, it only affects the value displayed in the oom warning message. This patch fix