Lines Matching refs:scrub
687 (!ubi->used.rb_node && !ubi->scrub.rb_node)) { in wear_leveling_worker()
703 if (!ubi->scrub.rb_node) { in wear_leveling_worker()
724 e1 = rb_entry(rb_first(&ubi->scrub), struct ubi_wl_entry, u.rb); in wear_leveling_worker()
726 paranoid_check_in_wl_tree(ubi, e1, &ubi->scrub); in wear_leveling_worker()
727 rb_erase(&e1->u.rb, &ubi->scrub); in wear_leveling_worker()
894 wl_tree_add(e1, &ubi->scrub); in wear_leveling_worker()
965 if (!ubi->scrub.rb_node) { in ensure_wear_leveling()
1180 } else if (in_wl_tree(e, &ubi->scrub)) { in ubi_wl_put_peb()
1181 paranoid_check_in_wl_tree(ubi, e, &ubi->scrub); in ubi_wl_put_peb()
1182 rb_erase(&e->u.rb, &ubi->scrub); in ubi_wl_put_peb()
1231 if (e == ubi->move_from || in_wl_tree(e, &ubi->scrub) || in ubi_wl_scrub_peb()
1265 wl_tree_add(e, &ubi->scrub); in ubi_wl_scrub_peb()
1439 ubi->used = ubi->erroneous = ubi->free = ubi->scrub = RB_ROOT; in ubi_wl_init_scan()
1498 if (!seb->scrub) { in ubi_wl_init_scan()
1505 wl_tree_add(e, &ubi->scrub); in ubi_wl_init_scan()
1532 tree_destroy(&ubi->scrub); in ubi_wl_init_scan()
1566 tree_destroy(&ubi->scrub); in ubi_wl_close()