Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309955
b: refs/heads/master
c: bb3d132
h: refs/heads/master
i:
  309953: bb4942e
  309951: 57ddf73
v: v3
  • Loading branch information
Dan Carpenter authored and Theodore Ts'o committed May 28, 2012
1 parent 84dd12a commit 1a3fe9a
Show file tree
Hide file tree
Showing 2 changed files with 7 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: e93376c20b70d1e62bb3246acd1bbe21fe58859f
refs/heads/master: bb3d132a24cd8bf5e7773b2d9f9baa58b07a7dae
10 changes: 6 additions & 4 deletions trunk/fs/ext4/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,12 @@ static int find_group_orlov(struct super_block *sb, struct inode *parent,
for (i = 0; i < ngroups; i++) {
grp = (parent_group + i) % ngroups;
desc = ext4_get_group_desc(sb, grp, NULL);
grp_free = ext4_free_inodes_count(sb, desc);
if (desc && grp_free && grp_free >= avefreei) {
*group = grp;
return 0;
if (desc) {
grp_free = ext4_free_inodes_count(sb, desc);
if (grp_free && grp_free >= avefreei) {
*group = grp;
return 0;
}
}
}

Expand Down

0 comments on commit 1a3fe9a

Please sign in to comment.