Re: [PATCH] zsmalloc: simplify init_zspage free obj linking

2014-09-15 Thread Minchan Kim
On Mon, Sep 15, 2014 at 04:58:50PM -0400, Dan Streetman wrote: > Change zsmalloc init_zspage() logic to iterate through each object on > each of its pages, checking the offset to verify the object is on the > current page before linking it into the zspage. > > The current zsmalloc init_zspage

[PATCH] zsmalloc: simplify init_zspage free obj linking

2014-09-15 Thread Dan Streetman
Change zsmalloc init_zspage() logic to iterate through each object on each of its pages, checking the offset to verify the object is on the current page before linking it into the zspage. The current zsmalloc init_zspage free object linking code has logic that relies on there only being one page

[PATCH] zsmalloc: simplify init_zspage free obj linking

2014-09-15 Thread Dan Streetman
Change zsmalloc init_zspage() logic to iterate through each object on each of its pages, checking the offset to verify the object is on the current page before linking it into the zspage. The current zsmalloc init_zspage free object linking code has logic that relies on there only being one page

Re: [PATCH] zsmalloc: simplify init_zspage free obj linking

2014-09-15 Thread Minchan Kim
On Mon, Sep 15, 2014 at 04:58:50PM -0400, Dan Streetman wrote: Change zsmalloc init_zspage() logic to iterate through each object on each of its pages, checking the offset to verify the object is on the current page before linking it into the zspage. The current zsmalloc init_zspage free