Re: [PATCH v1 02/10] zsmalloc: decouple handle and object

2015-01-26 Thread Minchan Kim
Hello Ganesh, On Mon, Jan 26, 2015 at 10:53:57AM +0800, Ganesh Mahendran wrote: > Hello, Minchan > > 2015-01-21 14:14 GMT+08:00 Minchan Kim : > > Currently, zram's handle encodes object's location directly so > > it makes hard to support migration/compaction. > > > > This patch decouples handle a

Re: [PATCH v1 02/10] zsmalloc: decouple handle and object

2015-01-25 Thread Ganesh Mahendran
Hello, Minchan 2015-01-21 14:14 GMT+08:00 Minchan Kim : > Currently, zram's handle encodes object's location directly so > it makes hard to support migration/compaction. > > This patch decouples handle and object via adding indirect layer. > For it, it allocates handle dynamically and returns it t

[PATCH v1 02/10] zsmalloc: decouple handle and object

2015-01-20 Thread Minchan Kim
Currently, zram's handle encodes object's location directly so it makes hard to support migration/compaction. This patch decouples handle and object via adding indirect layer. For it, it allocates handle dynamically and returns it to user. The handle is the address allocated by slab allocation so