/* Returns preferred place for a block (the goal).  */
static ext2_fsblk_t ext2_find_goal(struct inode *inode, long block, Indirect *partial)
/* Returns preferred place for a block (the goal).  */
static ext2_fsblk_t ext2_find_goal(struct inode *inode, long block, Indirect *partial)
{
	struct ext2_block_alloc_info *block_i;
	block_i = EXT2_I(inode)->i_block_alloc_info;
	if (block_i && (block == block_i->last_alloc_logical_block + 1)
		&& (block_i->last_alloc_physical_block != 0)) {
		return block_i->last_alloc_physical_block + 1;
	}
	return ext2_find_near(inode, partial);
}