/* Since typical flash erasable sectors are much larger than what Linux's buffer cache can handle, we must implement read-modify-write on flash sectors for each block write requests. To avoid over-erasing flash sectors and to speed things up, we locally cache a whole flash sector while it is being written to until a different sector is required.  */
static void erase_callback(struct erase_info *done)
/* Since typical flash erasable sectors are much larger than what Linux's buffer cache can handle, we must implement read-modify-write on flash sectors for each block write requests. To avoid over-erasing flash sectors and to speed things up, we locally cache a whole flash sector while it is being written to until a different sector is required.  */
static void erase_callback(struct erase_info *done)
{
	wait_queue_head_t *wait_q = (wait_queue_head_t *)done->priv;
	wake_up(wait_q);
}