Commit 99e25a99 authored by Jing Zhang's avatar Jing Zhang Committed by Greg Kroah-Hartman

ext4: Remove unnecessary call to ext4_get_group_desc() in mballoc

commit 62e823a2 upstream (as of v2.6.34-git13)
Signed-off-by: default avatarJing Zhang <zj.barak@gmail.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent caf4fd5d
......@@ -2027,7 +2027,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;
......@@ -2050,7 +2049,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