aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/mballoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/mballoc.c')
-rw-r--r--fs/ext4/mballoc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index ba3aad27f442..bdb9f299157a 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -1736,10 +1736,6 @@ ext4_mb_regular_allocator(struct ext4_allocation_context *ac)
1736 ac->ac_g_ex.fe_start = sbi->s_mb_last_start; 1736 ac->ac_g_ex.fe_start = sbi->s_mb_last_start;
1737 spin_unlock(&sbi->s_md_lock); 1737 spin_unlock(&sbi->s_md_lock);
1738 } 1738 }
1739
1740 /* searching for the right group start from the goal value specified */
1741 group = ac->ac_g_ex.fe_group;
1742
1743 /* Let's just scan groups to find more-less suitable blocks */ 1739 /* Let's just scan groups to find more-less suitable blocks */
1744 cr = ac->ac_2order ? 0 : 1; 1740 cr = ac->ac_2order ? 0 : 1;
1745 /* 1741 /*
@@ -1749,6 +1745,12 @@ ext4_mb_regular_allocator(struct ext4_allocation_context *ac)
1749repeat: 1745repeat:
1750 for (; cr < 4 && ac->ac_status == AC_STATUS_CONTINUE; cr++) { 1746 for (; cr < 4 && ac->ac_status == AC_STATUS_CONTINUE; cr++) {
1751 ac->ac_criteria = cr; 1747 ac->ac_criteria = cr;
1748 /*
1749 * searching for the right group start
1750 * from the goal value specified
1751 */
1752 group = ac->ac_g_ex.fe_group;
1753
1752 for (i = 0; i < EXT4_SB(sb)->s_groups_count; group++, i++) { 1754 for (i = 0; i < EXT4_SB(sb)->s_groups_count; group++, i++) {
1753 struct ext4_group_info *grp; 1755 struct ext4_group_info *grp;
1754 struct ext4_group_desc *desc; 1756 struct ext4_group_desc *desc;