Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375580
b: refs/heads/master
c: e615573
h: refs/heads/master
v: v3
  • Loading branch information
Lachlan McIlroy authored and Theodore Ts'o committed May 6, 2013
1 parent c88813e commit 8aa36f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: e30b5dca15dea86aa697f9d58ff646294fe80d3d
refs/heads/master: e6155736ad76b2070652745f9e54cdea3f0d8567
6 changes: 5 additions & 1 deletion trunk/fs/ext4/mballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2105,7 +2105,11 @@ ext4_mb_regular_allocator(struct ext4_allocation_context *ac)
group = ac->ac_g_ex.fe_group;

for (i = 0; i < ngroups; group++, i++) {
if (group == ngroups)
/*
* Artificially restricted ngroups for non-extent
* files makes group > ngroups possible on first loop.
*/
if (group >= ngroups)
group = 0;

/* This now checks without needing the buddy page */
Expand Down

0 comments on commit 8aa36f3

Please sign in to comment.