Skip to content

Commit

Permalink
ext4: Remove unnecessary call to ext4_get_group_desc() in mballoc
Browse files Browse the repository at this point in the history
Signed-off-by: Jing Zhang <zj.barak@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Jing Zhang authored and Theodore Ts'o committed May 13, 2010
1 parent b720303 commit 62e823a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/ext4/mballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2025,7 +2025,6 @@ ext4_mb_regular_allocator(struct ext4_allocation_context *ac)

for (i = 0; i < ngroups; group++, i++) {
struct ext4_group_info *grp;
struct ext4_group_desc *desc;

if (group == ngroups)
group = 0;
Expand All @@ -2048,7 +2047,6 @@ ext4_mb_regular_allocator(struct ext4_allocation_context *ac)
}

ac->ac_groups_scanned++;
desc = ext4_get_group_desc(sb, group, NULL);
if (cr == 0)
ext4_mb_simple_scan_group(ac, &e4b);
else if (cr == 1 &&
Expand Down

0 comments on commit 62e823a

Please sign in to comment.