X-Spam-Checker-Version: SpamAssassin 3.4.0-r929098 (2010-03-30) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,J_CHICKENPOX_63 autolearn=no version=3.4.0-r929098 Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id oA537hKE176383 for ; Thu, 4 Nov 2010 22:07:43 -0500 X-ASG-Debug-ID: 1288926547-0d11033f0000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from mail.perches.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id BC9B2138CE99; Thu, 4 Nov 2010 20:09:07 -0700 (PDT) Received: from mail.perches.com (mail.perches.com [173.55.12.10]) by cuda.sgi.com with ESMTP id yNcGrw98Cgx0PcL4; Thu, 04 Nov 2010 20:09:07 -0700 (PDT) Received: from Joe-Laptop.home (unknown [192.168.1.162]) by mail.perches.com (Postfix) with ESMTP id 1007724376; Thu, 4 Nov 2010 19:09:00 -0800 (PST) From: Joe Perches To: Jiri Kosina Cc: Alex Elder , xfs-masters@oss.sgi.com, xfs@oss.sgi.com, linux-kernel@vger.kernel.org X-ASG-Orig-Subj: [PATCH 41/49] fs/xfs: Use vzalloc Subject: [PATCH 41/49] fs/xfs: Use vzalloc Date: Thu, 4 Nov 2010 20:08:05 -0700 Message-Id: <10acc19712bf3d1e0ea68e7c16e1723922541249.1288925425.git.joe@perches.com> X-Mailer: git-send-email 1.7.3.1.g432b3.dirty In-Reply-To: References: In-Reply-To: References: X-Barracuda-Connect: mail.perches.com[173.55.12.10] X-Barracuda-Start-Time: 1288926547 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.45710 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean 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) { -- 1.7.3.1.g432b3.dirty