Re: [PATCH v3] mm/zsmalloc: avoid duplicate assignment of prev_class

2014-11-25 Thread Dan Streetman
On Tue, Nov 25, 2014 at 8:00 AM, Ganesh Mahendran wrote: > In zs_create_pool(), prev_class is assigned (ZS_SIZE_CLASSES - 1) > times. And the prev_class only references to the previous size_class. > So we do not need unnecessary assignement. > > This patch assigns *prev_class* when a new size_clas

[PATCH v3] mm/zsmalloc: avoid duplicate assignment of prev_class

2014-11-25 Thread Ganesh Mahendran
In zs_create_pool(), prev_class is assigned (ZS_SIZE_CLASSES - 1) times. And the prev_class only references to the previous size_class. So we do not need unnecessary assignement. This patch assigns *prev_class* when a new size_class structure is allocated and uses prev_class to check whether the f