ext4: remove call to ext4_group_desc() in ext4_group_used_meta_blocks()
authorTheodore Ts'o <tytso@mit.edu>
Fri, 6 Feb 2009 21:23:37 +0000 (16:23 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 6 Feb 2009 21:23:37 +0000 (16:23 -0500)
commite187c6588d6ef3169db53c389b3de9dfde3b16cc
tree5ac50e38eecb58d8de571af0053331c31eb0a5e2
parent074ca44283bf031678e67af7d82668bb03c55a55
ext4: remove call to ext4_group_desc() in ext4_group_used_meta_blocks()

The static function ext4_group_used_meta_blocks() only has one caller,
who already has access to the block group's group descriptor.  So it's
better to have ext4_init_block_bitmap() pass the group descriptor to
ext4_group_used_meta_blocks(), so it doesn't need to call
ext4_group_desc().  Previously this function did not check if
ext4_group_desc() returned NULL due to an error, potentially causing a
kernel OOPS report.  This avoids the issue entirely.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/balloc.c