Lines Matching refs:scrub
58 * used eraseblocks are kept in @wl->used, @wl->erroneous, or @wl->scrub
89 * o scrubbing is needed (@wl->scrub tree).
685 (!ubi->used.rb_node && !ubi->scrub.rb_node)) {
701 if (!ubi->scrub.rb_node) {
722 e1 = rb_entry(rb_first(&ubi->scrub), struct ubi_wl_entry, u.rb);
724 paranoid_check_in_wl_tree(e1, &ubi->scrub);
725 rb_erase(&e1->u.rb, &ubi->scrub);
726 dbg_wl("scrub PEB %d to PEB %d", e1->pnum, e2->pnum);
879 wl_tree_add(e1, &ubi->scrub);
947 * If the ubi->scrub tree is not empty, scrubbing is needed, and the
950 if (!ubi->scrub.rb_node) {
1164 } else if (in_wl_tree(e, &ubi->scrub)) {
1165 paranoid_check_in_wl_tree(e, &ubi->scrub);
1166 rb_erase(&e->u.rb, &ubi->scrub);
1215 if (e == ubi->move_from || in_wl_tree(e, &ubi->scrub) ||
1249 wl_tree_add(e, &ubi->scrub);
1423 ubi->used = ubi->erroneous = ubi->free = ubi->scrub = RB_ROOT;
1498 if (!seb->scrub) {
1503 dbg_wl("add PEB %d EC %d to the scrub tree",
1505 wl_tree_add(e, &ubi->scrub);
1529 tree_destroy(&ubi->scrub);
1563 tree_destroy(&ubi->scrub);