Re: [PATCH] zsmalloc: fix obj_to_head use page_private(page) as value but not pointer

2015-10-06 Thread Hui Zhu
On Tue, Oct 6, 2015 at 9:54 PM, Minchan Kim wrote: > Hello, > > On Mon, Oct 05, 2015 at 04:23:01PM +0800, Hui Zhu wrote: >> In function obj_malloc: >> if (!class->huge) >> /* record handle in the header of allocated chunk */ >> link->handle = handle; >>

Re: [PATCH] zsmalloc: fix obj_to_head use page_private(page) as value but not pointer

2015-10-06 Thread Minchan Kim
Hello, On Mon, Oct 05, 2015 at 04:23:01PM +0800, Hui Zhu wrote: > In function obj_malloc: > if (!class->huge) > /* record handle in the header of allocated chunk */ > link->handle = handle; > else > /* record handle in first_page->private */ >

Re: [PATCH] zsmalloc: fix obj_to_head use page_private(page) as value but not pointer

2015-10-06 Thread Sergey Senozhatsky
On (10/05/15 16:23), Hui Zhu wrote: > In function obj_malloc: > if (!class->huge) > /* record handle in the header of allocated chunk */ > link->handle = handle; > else > /* record handle in first_page->private */ >

Re: [PATCH] zsmalloc: fix obj_to_head use page_private(page) as value but not pointer

2015-10-06 Thread Hui Zhu
On Tue, Oct 6, 2015 at 9:54 PM, Minchan Kim wrote: > Hello, > > On Mon, Oct 05, 2015 at 04:23:01PM +0800, Hui Zhu wrote: >> In function obj_malloc: >> if (!class->huge) >> /* record handle in the header of allocated chunk */ >> link->handle =

Re: [PATCH] zsmalloc: fix obj_to_head use page_private(page) as value but not pointer

2015-10-06 Thread Sergey Senozhatsky
On (10/05/15 16:23), Hui Zhu wrote: > In function obj_malloc: > if (!class->huge) > /* record handle in the header of allocated chunk */ > link->handle = handle; > else > /* record handle in first_page->private */ >

Re: [PATCH] zsmalloc: fix obj_to_head use page_private(page) as value but not pointer

2015-10-06 Thread Minchan Kim
Hello, On Mon, Oct 05, 2015 at 04:23:01PM +0800, Hui Zhu wrote: > In function obj_malloc: > if (!class->huge) > /* record handle in the header of allocated chunk */ > link->handle = handle; > else > /* record handle in first_page->private */ >

[PATCH] zsmalloc: fix obj_to_head use page_private(page) as value but not pointer

2015-10-05 Thread Hui Zhu
In function obj_malloc: if (!class->huge) /* record handle in the header of allocated chunk */ link->handle = handle; else /* record handle in first_page->private */ set_page_private(first_page, handle); The huge's

[PATCH] zsmalloc: fix obj_to_head use page_private(page) as value but not pointer

2015-10-05 Thread Hui Zhu
In function obj_malloc: if (!class->huge) /* record handle in the header of allocated chunk */ link->handle = handle; else /* record handle in first_page->private */ set_page_private(first_page, handle); The huge's