Lines Matching defs:in_wl_tree
229 * in_wl_tree - check if wear-leveling entry is present in a WL RB-tree.
236 static int in_wl_tree(struct ubi_wl_entry *e, struct rb_root *root)
1295 if (in_wl_tree(e, &ubi->used)) {
1298 } else if (in_wl_tree(e, &ubi->scrub)) {
1301 } else if (in_wl_tree(e, &ubi->erroneous)) {
1351 if (e == ubi->move_from || in_wl_tree(e, &ubi->scrub) ||
1352 in_wl_tree(e, &ubi->erroneous)) {
1370 if (in_wl_tree(e, &ubi->used)) {
1460 if (in_wl_tree(e, &ubi->scrub))
1462 else if (in_wl_tree(e, &ubi->erroneous))
1567 } else if (in_wl_tree(e, &ubi->used)) {
1573 } else if (in_wl_tree(e, &ubi->free)) {
2028 if (in_wl_tree(e, root))