Re: [PATCHv6 1/8] zsmalloc: add to mm/

2013-02-22 Thread Seth Jennings
On 02/22/2013 03:40 AM, Joonsoo Kim wrote: > On Wed, Feb 20, 2013 at 04:04:41PM -0600, Seth Jennings wrote: >> = >> DO NOT MERGE, FOR REVIEW ONLY >> This patch introduces zsmalloc as new code, however, it already >> exists in drivers/staging. In order to build successfully, you >> must sel

Re: [PATCHv6 1/8] zsmalloc: add to mm/

2013-02-22 Thread Joonsoo Kim
On Wed, Feb 20, 2013 at 04:04:41PM -0600, Seth Jennings wrote: > = > DO NOT MERGE, FOR REVIEW ONLY > This patch introduces zsmalloc as new code, however, it already > exists in drivers/staging. In order to build successfully, you > must select EITHER to driver/staging version OR this versi

Re: [PATCHv6 1/8] zsmalloc: add to mm/

2013-02-21 Thread Andrew Morton
On Thu, 21 Feb 2013 16:21:37 -0600 Seth Jennings wrote: > On 02/21/2013 02:36 PM, Cody P Schafer wrote: > > On Wed, Feb 20, 2013 at 04:04:41PM -0600, Seth Jennings wrote: > >> diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c > >> +#define MAX(a, b) ((a) >= (b) ? (a) : (b)) > >> +/* ZS_MIN_ALLOC_SIZE mu

Re: [PATCHv6 1/8] zsmalloc: add to mm/

2013-02-21 Thread Cody P Schafer
On Wed, Feb 20, 2013 at 04:04:41PM -0600, Seth Jennings wrote: > diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c > +#define MAX(a, b) ((a) >= (b) ? (a) : (b)) > +/* ZS_MIN_ALLOC_SIZE must be multiple of ZS_ALIGN */ > +#define ZS_MIN_ALLOC_SIZE \ > + MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >>

Re: [PATCHv6 1/8] zsmalloc: add to mm/

2013-02-21 Thread Seth Jennings
On 02/21/2013 02:36 PM, Cody P Schafer wrote: > On Wed, Feb 20, 2013 at 04:04:41PM -0600, Seth Jennings wrote: >> diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c >> +#define MAX(a, b) ((a) >= (b) ? (a) : (b)) >> +/* ZS_MIN_ALLOC_SIZE must be multiple of ZS_ALIGN */ >> +#define ZS_MIN_ALLOC_SIZE \ >> +

[PATCHv6 1/8] zsmalloc: add to mm/

2013-02-20 Thread Seth Jennings
= DO NOT MERGE, FOR REVIEW ONLY This patch introduces zsmalloc as new code, however, it already exists in drivers/staging. In order to build successfully, you must select EITHER to driver/staging version OR this version. Once zsmalloc is reviewed in this format (and hopefully accepted), I