Lines Matching refs:old_fm
1492 struct ubi_fastmap_layout *new_fm, *old_fm; in ubi_update_fastmap() local
1513 old_fm = ubi->fm; in ubi_update_fastmap()
1528 if (old_fm && old_fm->e[i]) { in ubi_update_fastmap()
1529 ret = ubi_sync_erase(ubi, old_fm->e[i], 0); in ubi_update_fastmap()
1540 new_fm->e[i] = old_fm->e[i]; in ubi_update_fastmap()
1541 old_fm->e[i] = NULL; in ubi_update_fastmap()
1556 if (old_fm && old_fm->e[i]) { in ubi_update_fastmap()
1557 ubi_wl_put_fm_peb(ubi, old_fm->e[i], i, in ubi_update_fastmap()
1558 old_fm->to_be_tortured[i]); in ubi_update_fastmap()
1559 old_fm->e[i] = NULL; in ubi_update_fastmap()
1565 if (old_fm && new_fm->used_blocks < old_fm->used_blocks) { in ubi_update_fastmap()
1566 for (i = new_fm->used_blocks; i < old_fm->used_blocks; i++) { in ubi_update_fastmap()
1567 ubi_wl_put_fm_peb(ubi, old_fm->e[i], i, in ubi_update_fastmap()
1568 old_fm->to_be_tortured[i]); in ubi_update_fastmap()
1569 old_fm->e[i] = NULL; in ubi_update_fastmap()
1578 if (old_fm) { in ubi_update_fastmap()
1581 ret = ubi_sync_erase(ubi, old_fm->e[0], 0); in ubi_update_fastmap()
1592 new_fm->e[0] = old_fm->e[0]; in ubi_update_fastmap()
1593 old_fm->e[0] = NULL; in ubi_update_fastmap()
1596 ubi_wl_put_fm_peb(ubi, old_fm->e[0], 0, in ubi_update_fastmap()
1597 old_fm->to_be_tortured[0]); in ubi_update_fastmap()
1599 old_fm->e[0] = NULL; in ubi_update_fastmap()
1625 kfree(old_fm); in ubi_update_fastmap()
1639 return_fm_pebs(ubi, old_fm); in ubi_update_fastmap()