Lines Matching refs:curr_write
124 struct swap_eb *curr_write; member
282 struct swap_eb *curr_write = d->curr_write; in mtdswap_handle_write_error() local
285 if (curr_write == eb) { in mtdswap_handle_write_error()
286 d->curr_write = NULL; in mtdswap_handle_write_error()
509 if (eb == d->curr_write) in mtdswap_store_eb()
566 struct swap_eb *old_eb = d->curr_write; in mtdswap_map_free_block()
588 d->curr_write = eb; in mtdswap_map_free_block()
593 *block = (d->curr_write - d->eb_data) * d->pages_per_eblk + in mtdswap_map_free_block()
596 d->curr_write->active_count++; in mtdswap_map_free_block()
633 d->curr_write = NULL; in mtdswap_write_block()
1194 if (d->curr_write) { in mtdswap_show()
1197 cwecount = d->curr_write->erase_count; in mtdswap_show()