From: Theodore Ts'o Date: Fri, 6 Feb 2009 21:23:37 +0000 (-0500) Subject: ext4: remove call to ext4_group_desc() in ext4_group_used_meta_blocks() X-Git-Tag: v2.6.30-rc1~416^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e187c6588d6ef3169db53c389b3de9dfde3b16cc;p=pandora-kernel.git 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 Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed