Lines Matching refs:e2
652 struct ubi_wl_entry *e1, *e2; local
708 e2 = get_peb_for_wl(ubi);
709 if (!e2)
714 dbg_wl("anchor-move PEB %d to PEB %d", e1->pnum, e2->pnum);
726 e2 = get_peb_for_wl(ubi);
727 if (!e2)
730 if (!(e2->ec - e1->ec >= UBI_WL_THRESHOLD)) {
732 e1->ec, e2->ec);
735 wl_tree_add(e2, &ubi->free);
742 e1->pnum, e1->ec, e2->pnum, e2->ec);
747 e2 = get_peb_for_wl(ubi);
748 if (!e2)
753 dbg_wl("scrub PEB %d to PEB %d", e1->pnum, e2->pnum);
757 ubi->move_to = e2;
818 err = ubi_eba_copy_leb(ubi, e1->pnum, e2->pnum, vidb);
875 e1->pnum, vol_id, lnum, e2->pnum);
880 wl_tree_add(e2, &ubi->used);
881 e2 = NULL;
889 if (e2)
890 wl_entry_destroy(ubi, e2);
894 if (e2) {
900 e2->pnum, vol_id, lnum);
901 err = do_sync_erase(ubi, e2, vol_id, lnum, 0);
919 e1->pnum, vol_id, lnum, e2->pnum, err);
922 e1->pnum, e2->pnum, err);
934 wl_tree_add(e2, &ubi->free);
947 err = do_sync_erase(ubi, e2, vol_id, lnum, torture);
965 err, e1->pnum, e2->pnum);
968 err, e1->pnum, vol_id, lnum, e2->pnum);
976 wl_entry_destroy(ubi, e2);
1007 struct ubi_wl_entry *e2; local
1031 e2 = find_wl_entry(ubi, &ubi->free, WL_FREE_MAX_DIFF);
1033 if (!(e2->ec - e1->ec >= UBI_WL_THRESHOLD))