Commit 62e823a2 authored by Jing Zhang's avatar Jing Zhang Committed by Theodore Ts'o

ext4: Remove unnecessary call to ext4_get_group_desc() in mballoc

Signed-off-by: default avatarJing Zhang <zj.barak@gmail.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent b720303d
......@@ -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;
......@@ -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 &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment