Lines Matching refs:tree_empty
169 * tree_empty - a helper function to check if an RB-tree is empty.
174 static inline int tree_empty(struct rb_root *root)
307 while (tree_empty(&ubi->free)) {
463 if (tree_empty(&ubi->free)) {
653 if (tree_empty(&ubi->prot.aec)) {
761 if (ubi->move_to || tree_empty(&ubi->free) ||
762 (tree_empty(&ubi->used) && tree_empty(&ubi->scrub))) {
777 tree_empty(&ubi->free), tree_empty(&ubi->used));
784 if (tree_empty(&ubi->scrub)) {
954 if (tree_empty(&ubi->scrub)) {
955 if (tree_empty(&ubi->used) || tree_empty(&ubi->free))