From 212b7b2ad0c545f2e19f377e8ce1790d9b27cf90 Mon Sep 17 00:00:00 2001 From: Joe Perches Date: Sun, 19 Dec 2010 22:21:02 -0500 Subject: [PATCH] --- yaml --- r: 229110 b: refs/heads/master c: 94de56ab2062be59d80e2efb7c0dc60ecf616075 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ext4/super.c | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/[refs] b/[refs] index 6b793fcd44d0..566586e76e4c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: af0b44a1970fed1cda31d2969c99c46ffc515160 +refs/heads/master: 94de56ab2062be59d80e2efb7c0dc60ecf616075 diff --git a/trunk/fs/ext4/super.c b/trunk/fs/ext4/super.c index 072ff973ff2b..10290f8f5922 100644 --- a/trunk/fs/ext4/super.c +++ b/trunk/fs/ext4/super.c @@ -1930,14 +1930,13 @@ 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); - } - if (sbi->s_flex_groups == NULL) { - ext4_msg(sb, KERN_ERR, "not enough memory for " - "%u flex groups", flex_group_count); - goto failed; + sbi->s_flex_groups = vzalloc(size); + if (sbi->s_flex_groups == NULL) { + ext4_msg(sb, KERN_ERR, + "not enough memory for %u flex groups", + flex_group_count); + goto failed; + } } for (i = 0; i < sbi->s_groups_count; i++) {