Re: feel Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-12-10 Thread Minchan Kim
On Mon, Dec 10, 2012 at 11:19:49PM -0800, Nitin Gupta wrote: > On 12/10/2012 07:59 PM, Minchan Kim wrote: > > On Fri, Dec 07, 2012 at 04:45:53PM -0800, Nitin Gupta wrote: > >> On Sun, Dec 2, 2012 at 11:52 PM, Minchan Kim wrote: > >>> On Sun, Dec 02, 2012 at 11:20:42PM -0800, Nitin Gupta wrote: >

feel Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-12-10 Thread Nitin Gupta
On 12/10/2012 07:59 PM, Minchan Kim wrote: > On Fri, Dec 07, 2012 at 04:45:53PM -0800, Nitin Gupta wrote: >> On Sun, Dec 2, 2012 at 11:52 PM, Minchan Kim wrote: >>> On Sun, Dec 02, 2012 at 11:20:42PM -0800, Nitin Gupta wrote: On Nov 30, 2012, at 5:54 AM, Minchan Kim wrote:

Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-12-10 Thread Minchan Kim
On Fri, Dec 07, 2012 at 04:45:53PM -0800, Nitin Gupta wrote: > On Sun, Dec 2, 2012 at 11:52 PM, Minchan Kim wrote: > > On Sun, Dec 02, 2012 at 11:20:42PM -0800, Nitin Gupta wrote: > >> > >> > >> On Nov 30, 2012, at 5:54 AM, Minchan Kim > >> wrote: > >> > >> > On Thu, Nov 29, 2012 at 10:54:48PM

Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-12-10 Thread Minchan Kim
On Fri, Dec 07, 2012 at 04:45:53PM -0800, Nitin Gupta wrote: On Sun, Dec 2, 2012 at 11:52 PM, Minchan Kim minc...@kernel.org wrote: On Sun, Dec 02, 2012 at 11:20:42PM -0800, Nitin Gupta wrote: On Nov 30, 2012, at 5:54 AM, Minchan Kim minchan.kerne...@gmail.com wrote: On Thu, Nov

feel Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-12-10 Thread Nitin Gupta
On 12/10/2012 07:59 PM, Minchan Kim wrote: On Fri, Dec 07, 2012 at 04:45:53PM -0800, Nitin Gupta wrote: On Sun, Dec 2, 2012 at 11:52 PM, Minchan Kim minc...@kernel.org wrote: On Sun, Dec 02, 2012 at 11:20:42PM -0800, Nitin Gupta wrote: On Nov 30, 2012, at 5:54 AM, Minchan Kim

Re: feel Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-12-10 Thread Minchan Kim
On Mon, Dec 10, 2012 at 11:19:49PM -0800, Nitin Gupta wrote: On 12/10/2012 07:59 PM, Minchan Kim wrote: On Fri, Dec 07, 2012 at 04:45:53PM -0800, Nitin Gupta wrote: On Sun, Dec 2, 2012 at 11:52 PM, Minchan Kim minc...@kernel.org wrote: On Sun, Dec 02, 2012 at 11:20:42PM -0800, Nitin Gupta

Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-12-07 Thread Nitin Gupta
On Sun, Dec 2, 2012 at 11:52 PM, Minchan Kim wrote: > On Sun, Dec 02, 2012 at 11:20:42PM -0800, Nitin Gupta wrote: >> >> >> On Nov 30, 2012, at 5:54 AM, Minchan Kim wrote: >> >> > On Thu, Nov 29, 2012 at 10:54:48PM -0800, Nitin Gupta wrote: >> >> Changelog v2 vs v1: >> >> - None >> >> >> >> Adds

Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-12-07 Thread Nitin Gupta
On Sun, Dec 2, 2012 at 11:52 PM, Minchan Kim minc...@kernel.org wrote: On Sun, Dec 02, 2012 at 11:20:42PM -0800, Nitin Gupta wrote: On Nov 30, 2012, at 5:54 AM, Minchan Kim minchan.kerne...@gmail.com wrote: On Thu, Nov 29, 2012 at 10:54:48PM -0800, Nitin Gupta wrote: Changelog v2 vs v1:

Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-12-02 Thread Minchan Kim
On Sun, Dec 02, 2012 at 11:20:42PM -0800, Nitin Gupta wrote: > > > On Nov 30, 2012, at 5:54 AM, Minchan Kim wrote: > > > On Thu, Nov 29, 2012 at 10:54:48PM -0800, Nitin Gupta wrote: > >> Changelog v2 vs v1: > >> - None > >> > >> Adds zs_get_object_size(handle) which provides the size of > >>

Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-12-02 Thread Nitin Gupta
On Nov 30, 2012, at 5:54 AM, Minchan Kim wrote: > On Thu, Nov 29, 2012 at 10:54:48PM -0800, Nitin Gupta wrote: >> Changelog v2 vs v1: >> - None >> >> Adds zs_get_object_size(handle) which provides the size of >> the given object. This is useful since the user (zram etc.) >> now do not have to

Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-12-02 Thread Nitin Gupta
On Nov 30, 2012, at 5:54 AM, Minchan Kim minchan.kerne...@gmail.com wrote: On Thu, Nov 29, 2012 at 10:54:48PM -0800, Nitin Gupta wrote: Changelog v2 vs v1: - None Adds zs_get_object_size(handle) which provides the size of the given object. This is useful since the user (zram etc.) now

Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-12-02 Thread Minchan Kim
On Sun, Dec 02, 2012 at 11:20:42PM -0800, Nitin Gupta wrote: On Nov 30, 2012, at 5:54 AM, Minchan Kim minchan.kerne...@gmail.com wrote: On Thu, Nov 29, 2012 at 10:54:48PM -0800, Nitin Gupta wrote: Changelog v2 vs v1: - None Adds zs_get_object_size(handle) which provides the size

Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-11-30 Thread Minchan Kim
On Thu, Nov 29, 2012 at 10:54:48PM -0800, Nitin Gupta wrote: > Changelog v2 vs v1: > - None > > Adds zs_get_object_size(handle) which provides the size of > the given object. This is useful since the user (zram etc.) > now do not have to maintain object sizes separately, saving > on some

Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-11-30 Thread Minchan Kim
On Thu, Nov 29, 2012 at 10:54:48PM -0800, Nitin Gupta wrote: Changelog v2 vs v1: - None Adds zs_get_object_size(handle) which provides the size of the given object. This is useful since the user (zram etc.) now do not have to maintain object sizes separately, saving on some metadata size

[PATCH v2 1/2] zsmalloc: add function to query object size

2012-11-29 Thread Nitin Gupta
Changelog v2 vs v1: - None Adds zs_get_object_size(handle) which provides the size of the given object. This is useful since the user (zram etc.) now do not have to maintain object sizes separately, saving on some metadata size (4b per page). The object handle encodes pair which currently

[PATCH v2 1/2] zsmalloc: add function to query object size

2012-11-29 Thread Nitin Gupta
Changelog v2 vs v1: - None Adds zs_get_object_size(handle) which provides the size of the given object. This is useful since the user (zram etc.) now do not have to maintain object sizes separately, saving on some metadata size (4b per page). The object handle encodes page, offset pair which

Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-11-28 Thread Minchan Kim
Sorry for late response. I should have hurried. I just sent by my comment of your previous version's mail thread. Please look at it. On Wed, Nov 28, 2012 at 11:48:30PM -0800, Nitin Gupta wrote: > Changelog v2 vs v1 > - None > > Adds zs_get_object_size(handle) which provides the size of > the

[PATCH v2 1/2] zsmalloc: add function to query object size

2012-11-28 Thread Nitin Gupta
Changelog v2 vs v1 - None Adds zs_get_object_size(handle) which provides the size of the given object. This is useful since the user (zram etc.) now do not have to maintain object sizes separately, saving on some metadata size (4b per page). The object handle encodes pair which currently

[PATCH v2 1/2] zsmalloc: add function to query object size

2012-11-28 Thread Nitin Gupta
Changelog v2 vs v1 - None Adds zs_get_object_size(handle) which provides the size of the given object. This is useful since the user (zram etc.) now do not have to maintain object sizes separately, saving on some metadata size (4b per page). The object handle encodes page, offset pair which

Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-11-28 Thread Minchan Kim
Sorry for late response. I should have hurried. I just sent by my comment of your previous version's mail thread. Please look at it. On Wed, Nov 28, 2012 at 11:48:30PM -0800, Nitin Gupta wrote: Changelog v2 vs v1 - None Adds zs_get_object_size(handle) which provides the size of the given