kernels/linux-2.4.0/fs/ext2/ialloc.c
/*
 * Read the inode allocation bitmap for a given block_group, reading
 * into the specified slot in the superblock's bitmap cache.
 *
 * Return >=0 on success or a -ve error code.
 */
Read the inode allocation bitmap for a given block_group, reading
into the specified slot in the superblock's bitmap cache.

Return >=0 on success or a -ve error code.
Read the inode allocation bitmap for a given block_group reading into the specified slot in the superblock ' s bitmap cache . Return > = 0 on success or a - ve error code .
static int read_inode_bitmap (struct super_block * sb,
			       unsigned long block_group,
			       unsigned int bitmap_nr)
{
	struct ext2_group_desc * gdp;
	struct buffer_head * bh = NULL;
	int retval = 0;
	gdp = ext2_get_group_desc (sb, block_group, NULL);
	if (!gdp) {
		retval = -EIO;
		goto error_out;
	}
	bh = bread (sb->s_dev, le32_to_cpu(gdp->bg_inode_bitmap), sb->s_blocksize);
	if (!bh) {
		ext2_error (sb, "read_inode_bitmap",
			    "Cannot read inode bitmap - "
			    "block_group = %lu, inode_bitmap = %lu",
			    block_group, (unsigned long) gdp->bg_inode_bitmap);
		retval = -EIO;
	}
error_out:
	sb->u.ext2_sb.s_inode_bitmap_number[bitmap_nr] = block_group;
	sb->u.ext2_sb.s_inode_bitmap[bitmap_nr] = bh;
	return retval;
}
static int read_inode_bitmap ( struct super_block * sb , unsigned long block_group , unsigned int bitmap_nr ) { struct ext2_group_desc * gdp ; struct buffer_head * bh = NULL ; int retval = 0 ; gdp = ext2_get_group_desc ( sb , block_group , NULL ) ; if ( ! gdp ) { retval = - EIO ; goto error_out ; } bh = bread ( sb -> s_dev , le32_to_cpu ( gdp -> bg_inode_bitmap ) , sb -> s_blocksize ) ; if ( ! bh ) { ext2_error ( sb , " " , " " " " , block_group , ( unsigned long ) gdp -> bg_inode_bitmap ) ; retval = - EIO ; } error_out : sb -> u . ext2_sb . s_inode_bitmap_number [ bitmap_nr ] = block_group ; sb -> u . ext2_sb . s_inode_bitmap [ bitmap_nr ] = bh ; return retval ; }
Read the inode allocation bitmap for a given block_group, reading
 into the specified slot in the superblock's bitmap cache.
Read the inode allocation bitmap for a given block_group reading into the specified slot in the superblock ' s bitmap cache .
/*
	 * On IO error, just leave a zero in the superblock's block pointer for
	 * this group.  The IO will be retried next time.
	 */