Re: [PATCH v2 3/7] zsmalloc: support compaction

2015-03-08 Thread Minchan Kim
Hello Heesub, On Thu, Mar 05, 2015 at 02:18:17PM +0900, Heesub Shin wrote: > Hello Minchan, > > Nice work! Thanks. :) > > On 03/04/2015 02:01 PM, Minchan Kim wrote: > > +static void putback_zspage(struct zs_pool *pool, struct size_class *class, > > + struct page

Re: [PATCH v2 3/7] zsmalloc: support compaction

2015-03-08 Thread Minchan Kim
Hello Heesub, On Thu, Mar 05, 2015 at 02:18:17PM +0900, Heesub Shin wrote: Hello Minchan, Nice work! Thanks. :) On 03/04/2015 02:01 PM, Minchan Kim wrote: +static void putback_zspage(struct zs_pool *pool, struct size_class *class, + struct page *first_page)

Re: [PATCH v2 3/7] zsmalloc: support compaction

2015-03-04 Thread Heesub Shin
Hello Minchan, Nice work! On 03/04/2015 02:01 PM, Minchan Kim wrote: > +static void putback_zspage(struct zs_pool *pool, struct size_class *class, > + struct page *first_page) > +{ > + int class_idx; > + enum fullness_group fullness; > + > +

Re: [PATCH v2 3/7] zsmalloc: support compaction

2015-03-04 Thread Heesub Shin
Hello Minchan, Nice work! On 03/04/2015 02:01 PM, Minchan Kim wrote: +static void putback_zspage(struct zs_pool *pool, struct size_class *class, + struct page *first_page) +{ + int class_idx; + enum fullness_group fullness; + +

[PATCH v2 3/7] zsmalloc: support compaction

2015-03-03 Thread Minchan Kim
This patch provides core functions for migration of zsmalloc. Migraion policy is simple as follows. for each size class { while { src_page = get zs_page from ZS_ALMOST_EMPTY if (!src_page) break; dst_page = get

[PATCH v2 3/7] zsmalloc: support compaction

2015-03-03 Thread Minchan Kim
This patch provides core functions for migration of zsmalloc. Migraion policy is simple as follows. for each size class { while { src_page = get zs_page from ZS_ALMOST_EMPTY if (!src_page) break; dst_page = get