Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107542
b: refs/heads/master
c: ec05e86
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and Theodore Ts'o committed Jul 24, 2008
1 parent c4610aa commit 7c58e93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 12219aea6b944e36795267be31d43f9c484841be
refs/heads/master: ec05e868ac80cc8fc7de6e5cf773b232198e49af
7 changes: 3 additions & 4 deletions trunk/fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1506,14 +1506,13 @@ static int ext4_fill_flex_info(struct super_block *sb)

flex_group_count = (sbi->s_groups_count + groups_per_flex - 1) /
groups_per_flex;
sbi->s_flex_groups = kmalloc(flex_group_count *
sbi->s_flex_groups = kzalloc(flex_group_count *
sizeof(struct flex_groups), GFP_KERNEL);
if (sbi->s_flex_groups == NULL) {
printk(KERN_ERR "EXT4-fs: not enough memory\n");
printk(KERN_ERR "EXT4-fs: not enough memory for "
"%lu flex groups\n", flex_group_count);
goto failed;
}
memset(sbi->s_flex_groups, 0, flex_group_count *
sizeof(struct flex_groups));

gdp = ext4_get_group_desc(sb, 1, &bh);
block_bitmap = ext4_block_bitmap(sb, gdp) - 1;
Expand Down

0 comments on commit 7c58e93

Please sign in to comment.