From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH 41/49] fs/xfs: Use vzalloc From: Alex Elder In-Reply-To: <10acc19712bf3d1e0ea68e7c16e1723922541249.1288925425.git.joe@perches.com> References: <10acc19712bf3d1e0ea68e7c16e1723922541249.1288925425.git.joe@perches.com> Date: Fri, 05 Nov 2010 12:09:45 -0500 Message-ID: <1288976985.2295.25.camel@doink> Mime-Version: 1.0 Reply-To: aelder@sgi.com List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Joe Perches Cc: xfs-masters@oss.sgi.com, Jiri Kosina , linux-kernel@vger.kernel.org, xfs@oss.sgi.com On Thu, 2010-11-04 at 20:08 -0700, Joe Perches wrote: > Signed-off-by: Joe Perches > --- > fs/xfs/linux-2.6/kmem.h | 7 +------ > 1 files changed, 1 insertions(+), 6 deletions(-) > > diff --git a/fs/xfs/linux-2.6/kmem.h b/fs/xfs/linux-2.6/kmem.h > index f7c8f7a..292eff1 100644 > --- a/fs/xfs/linux-2.6/kmem.h > +++ b/fs/xfs/linux-2.6/kmem.h > @@ -61,12 +61,7 @@ extern void kmem_free(const void *); > > static inline void *kmem_zalloc_large(size_t size) > { > - void *ptr; > - > - ptr = vmalloc(size); > - if (ptr) > - memset(ptr, 0, size); > - return ptr; > + return vzalloc(size); > } > static inline void kmem_free_large(void *ptr) > { Looks good to me. Reviewed-by: Alex Elder _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs