Re: [PATCH v2 5/8] mm/zsmalloc: avoid calculate max objects of zspage twice

2016-07-05 Thread Minchan Kim
On Mon, Jul 04, 2016 at 02:49:56PM +0800, Ganesh Mahendran wrote: > Currently, if a class can not be merged, the max objects of zspage > in that class may be calculated twice. > > This patch calculate max objects of zspage at the begin, and pass > the value to can_merge() to decide whether the

Re: [PATCH v2 5/8] mm/zsmalloc: avoid calculate max objects of zspage twice

2016-07-05 Thread Minchan Kim
On Mon, Jul 04, 2016 at 02:49:56PM +0800, Ganesh Mahendran wrote: > Currently, if a class can not be merged, the max objects of zspage > in that class may be calculated twice. > > This patch calculate max objects of zspage at the begin, and pass > the value to can_merge() to decide whether the

Re: [PATCH v2 5/8] mm/zsmalloc: avoid calculate max objects of zspage twice

2016-07-04 Thread Sergey Senozhatsky
On (07/04/16 14:49), Ganesh Mahendran wrote: > Currently, if a class can not be merged, the max objects of zspage > in that class may be calculated twice. > > This patch calculate max objects of zspage at the begin, and pass > the value to can_merge() to decide whether the class can be merged. >

Re: [PATCH v2 5/8] mm/zsmalloc: avoid calculate max objects of zspage twice

2016-07-04 Thread Sergey Senozhatsky
On (07/04/16 14:49), Ganesh Mahendran wrote: > Currently, if a class can not be merged, the max objects of zspage > in that class may be calculated twice. > > This patch calculate max objects of zspage at the begin, and pass > the value to can_merge() to decide whether the class can be merged. >

[PATCH v2 5/8] mm/zsmalloc: avoid calculate max objects of zspage twice

2016-07-04 Thread Ganesh Mahendran
Currently, if a class can not be merged, the max objects of zspage in that class may be calculated twice. This patch calculate max objects of zspage at the begin, and pass the value to can_merge() to decide whether the class can be merged. Also this patch remove function get_maxobj_per_zspage(),

[PATCH v2 5/8] mm/zsmalloc: avoid calculate max objects of zspage twice

2016-07-04 Thread Ganesh Mahendran
Currently, if a class can not be merged, the max objects of zspage in that class may be calculated twice. This patch calculate max objects of zspage at the begin, and pass the value to can_merge() to decide whether the class can be merged. Also this patch remove function get_maxobj_per_zspage(),