summaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorTao Ma <boyu.mt@taobao.com>2011-07-23 16:07:26 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-07-23 16:07:26 -0400
commit529da704ad1ead755d9e40721f29446cb278e099 (patch)
tree624e4cdafcbbe61441c1cf73395394caf736618f /fs/ext4
parentd46203159ed376fdbe2b05aa57e58207bf27a8f9 (diff)
downloadlinux-3.10-529da704ad1ead755d9e40721f29446cb278e099.tar.gz
linux-3.10-529da704ad1ead755d9e40721f29446cb278e099.tar.bz2
linux-3.10-529da704ad1ead755d9e40721f29446cb278e099.zip
ext4: remove unnecessary ext4_get_group_info in ext4_mb_load_buddy
ext4_mb_load_buddy() calls ext4_get_group_info() for setting both "grp" and "e4b->bd_info", but it could do "e4b->bd_info = grp". Reported-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Tao Ma <boyu.mt@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/mballoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 037f680b76f..447c0f3384a 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -1126,7 +1126,7 @@ ext4_mb_load_buddy(struct super_block *sb, ext4_group_t group,
grp = ext4_get_group_info(sb, group);
e4b->bd_blkbits = sb->s_blocksize_bits;
- e4b->bd_info = ext4_get_group_info(sb, group);
+ e4b->bd_info = grp;
e4b->bd_sb = sb;
e4b->bd_group = group;
e4b->bd_buddy_page = NULL;