Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331593
b: refs/heads/master
c: 838cd0c
h: refs/heads/master
i:
  331591: f2f6a28
v: v3
  • Loading branch information
Yongqiang Yang authored and Theodore Ts'o committed Sep 24, 2012
1 parent 6e15a1e commit 094b965
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 50df9fd55e4271e89a7adf3b1172083dd0ca199d
refs/heads/master: 838cd0cf9af52e034ee81513642083bbe8e4ddb1
3 changes: 3 additions & 0 deletions trunk/fs/ext4/mballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1660,10 +1660,13 @@ int ext4_mb_find_by_goal(struct ext4_allocation_context *ac,
int max;
int err;
struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb);
struct ext4_group_info *grp = ext4_get_group_info(ac->ac_sb, group);
struct ext4_free_extent ex;

if (!(ac->ac_flags & EXT4_MB_HINT_TRY_GOAL))
return 0;
if (grp->bb_free == 0)
return 0;

err = ext4_mb_load_buddy(ac->ac_sb, group, e4b);
if (err)
Expand Down

0 comments on commit 094b965

Please sign in to comment.