[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4FD1A5FE.7020305@vflare.org>
Date: Fri, 08 Jun 2012 00:13:02 -0700
From: Nitin Gupta <ngupta@...are.org>
To: Minchan Kim <minchan@...nel.org>
CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Dan Magenheimer <dan.magenheimer@...cle.com>
Subject: Re: [PATCH v3] zsmalloc: zsmalloc: use unsigned long instead of void
*
On 06/07/2012 11:39 PM, Minchan Kim wrote:
> We should use unsigned long as handle instead of void * to avoid any
> confusion. Without this, users may just treat zs_malloc return value as
> a pointer and try to deference it.
>
> This patch passed compile test(zram, zcache and ramster) and zram is
> tested on qemu.
>
> changelog
> * from v2
> - remove hval pointed out by Nitin
> - based on next-20120607
> * from v1
> - change zcache's zv_create return value
> - baesd on next-20120604
>
> Cc: Nitin Gupta <ngupta@...are.org>
> Cc: Dan Magenheimer <dan.magenheimer@...cle.com>
> Acked-by: Seth Jennings <sjenning@...ux.vnet.ibm.com>
> Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>
> Signed-off-by: Minchan Kim <minchan@...nel.org>
> ---
> drivers/staging/zcache/zcache-main.c | 12 ++++++------
> drivers/staging/zram/zram_drv.c | 16 ++++++++--------
> drivers/staging/zram/zram_drv.h | 2 +-
> drivers/staging/zsmalloc/zsmalloc-main.c | 28 +++++++++++++---------------
> drivers/staging/zsmalloc/zsmalloc.h | 8 ++++----
> 5 files changed, 32 insertions(+), 34 deletions(-)
>
Thanks for all these fixes and cleanups.
Acked-by: Nitin Gupta <ngupta@...are.org>
Thanks,
Nitin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists