/* yaffs_skip_rest_of_block() skips over the rest of the allocation block if we don't want to write to it.  */
void yaffs_skip_rest_of_block(struct yaffs_dev *dev)
/* yaffs_skip_rest_of_block() skips over the rest of the allocation block if we don't want to write to it.  */
void yaffs_skip_rest_of_block(struct yaffs_dev *dev)
{
	struct yaffs_block_info *bi;
	if (dev->alloc_block > 0) {
		bi = yaffs_get_block_info(dev, dev->alloc_block);
		if (bi->block_state == YAFFS_BLOCK_STATE_ALLOCATING) {
			bi->block_state = YAFFS_BLOCK_STATE_FULL;
			dev->alloc_block = -1;
		}
	}
}