Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 229110
b: refs/heads/master
c: 94de56a
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Theodore Ts'o committed Dec 20, 2010
1 parent a7c99bf commit 212b7b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af0b44a1970fed1cda31d2969c99c46ffc515160
refs/heads/master: 94de56ab2062be59d80e2efb7c0dc60ecf616075
15 changes: 7 additions & 8 deletions trunk/fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 212b7b2

Please sign in to comment.