/* Return buffer_head of bitmap on success or NULL.  */
static struct buffer_head* read_inode_bitmap(struct super_block *sb, unsigned long block_group)
/* Return buffer_head of bitmap on success or NULL.  */
static struct buffer_head* read_inode_bitmap(struct super_block *sb, unsigned long block_group)
{
	struct ext3_group_desc *desc;
	struct buffer_head *bh = NULL;
	desc = ext3_get_group_desc(sb, block_group, NULL);
	if (!desc)
		goto error_out;
	bh = sb_bread(sb, le32_to_cpu(desc->bg_inode_bitmap));
	if (!bh)
		ext3_error(sb, "read_inode_bitmap",
			    "Cannot read inode bitmap - "
			    "block_group = %lu, inode_bitmap = %u",
			    block_group, le32_to_cpu(desc->bg_inode_bitmap));
error_out:
	return bh;
}