ext4: remove unnecessary ext4_get_group_info in ext4_mb_load_buddy
authorTao Ma <boyu.mt@taobao.com>
Sat, 23 Jul 2011 20:07:26 +0000 (16:07 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 23 Jul 2011 20:07:26 +0000 (16:07 -0400)
commit529da704ad1ead755d9e40721f29446cb278e099
tree624e4cdafcbbe61441c1cf73395394caf736618f
parentd46203159ed376fdbe2b05aa57e58207bf27a8f9
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>
fs/ext4/mballoc.c