Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753999Ab0KEDLx (ORCPT ); Thu, 4 Nov 2010 23:11:53 -0400 Received: from mail.perches.com ([173.55.12.10]:4167 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753828Ab0KEDJE (ORCPT ); Thu, 4 Nov 2010 23:09:04 -0400 From: Joe Perches To: Jiri Kosina Cc: "Theodore Ts'o" , Andreas Dilger , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 37/49] fs/ext4: Use vzalloc Date: Thu, 4 Nov 2010 20:08:01 -0700 Message-Id: <960a7efc569f61a50346257835ce5f457a0d4c99.1288925425.git.joe@perches.com> X-Mailer: git-send-email 1.7.3.1.g432b3.dirty In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 977 Lines: 28 Signed-off-by: Joe Perches --- fs/ext4/super.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 40131b7..9ed90f4 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -1909,9 +1909,7 @@ static int ext4_fill_flex_info(struct super_block *sb) size = flex_group_count * sizeof(struct flex_groups); sbi->s_flex_groups = kzalloc(size, GFP_KERNEL); if (sbi->s_flex_groups == NULL) { - sbi->s_flex_groups = vmalloc(size); - if (sbi->s_flex_groups) - memset(sbi->s_flex_groups, 0, size); + sbi->s_flex_groups = vzalloc(size); } if (sbi->s_flex_groups == NULL) { ext4_msg(sb, KERN_ERR, "not enough memory for " -- 1.7.3.1.g432b3.dirty -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/