RB_EMPTY_ROOT
WARN_ON_ONCE(!RB_EMPTY_ROOT(&pgt->pkvm_mappings.rb_root));
while (!RB_EMPTY_ROOT(&type->units)) {
while (!RB_EMPTY_ROOT(type->boxes)) {
if (RB_EMPTY_ROOT(&bfqq->sort_list) && bfqq->dispatched == 0)
if (RB_EMPTY_ROOT(&bfqq->sort_list)) {
if (RB_EMPTY_ROOT(root))
if (bfq_bfqq_busy(bfqq) && RB_EMPTY_ROOT(&bfqq->sort_list) &&
if (RB_EMPTY_ROOT(&bfqq->sort_list) &&
!RB_EMPTY_ROOT(&bfqq->sort_list)))
RB_EMPTY_ROOT(&bfqq->sort_list)) {
return RB_EMPTY_ROOT(&bfqq->sort_list) && bfq_better_to_idle(bfqq);
if (!RB_EMPTY_ROOT(&bfqq->sort_list) &&
if (!RB_EMPTY_ROOT(&bfqq->sort_list) &&
WARN_ON_ONCE(!RB_EMPTY_ROOT(&bfqq->sort_list));
RB_EMPTY_ROOT(&bfqq->sort_list) &&
else if (RB_EMPTY_ROOT(&bfqq->sort_list) &&
!RB_EMPTY_ROOT(&bfqd->queue_weights_tree.rb_root) &&
if (RB_EMPTY_ROOT(&st->active))
if (!RB_EMPTY_ROOT(&idle_class_st->active))
if (RB_EMPTY_ROOT(&st->active) && last_idle &&
BUG_ON(RB_EMPTY_ROOT(&per_prio->sort_list[DD_READ]));
BUG_ON(RB_EMPTY_ROOT(&per_prio->sort_list[DD_WRITE]));
if (proc->is_dead && RB_EMPTY_ROOT(&proc->threads) &&
if (RB_EMPTY_ROOT(root))
BUG_ON(!RB_EMPTY_ROOT(&ring->persistent_gnts));
BUG_ON(!RB_EMPTY_ROOT(&ring->persistent_gnts));
if (!RB_EMPTY_ROOT(&vm->va.rb_root)) {
return RB_EMPTY_ROOT(root);
if (RB_EMPTY_ROOT(¬ifier->root.rb_root)) {
WARN_ON(!RB_EMPTY_ROOT(&gpusvm->root.rb_root));
WARN_ON(!RB_EMPTY_ROOT(¬ifier->root.rb_root));
drm_WARN(gpuvm->drm, !RB_EMPTY_ROOT(&gpuvm->rb.tree.rb_root),
WARN_ON(!RB_EMPTY_ROOT(&prime_fpriv->dmabufs));
if (!RB_EMPTY_ROOT(&obj->mmo.offsets)) {
if (!RB_EMPTY_ROOT(&engine->execlists.virtual.rb_root)) {
if (RB_EMPTY_ROOT(&ref->tree))
return RB_EMPTY_ROOT(&sched_engine->queue.rb_root);
if (!RB_EMPTY_ROOT(&vm->va.rb_root))
WARN_ON(!RB_EMPTY_ROOT(&vbo->res_tree));
while (!RB_EMPTY_ROOT(&vbo->res_tree)) {
XE_WARN_ON(!RB_EMPTY_ROOT(&tree->root.rb_root));
WARN_ON(!RB_EMPTY_ROOT(&rxe->mcg_tree));
!RB_EMPTY_ROOT(&iopt->area_itree.rb_root)) {
if (RB_EMPTY_ROOT(&iopt->allowed_itree.rb_root)) {
WARN_ON(!RB_EMPTY_ROOT(&iopt->reserved_itree.rb_root));
WARN_ON(!RB_EMPTY_ROOT(&iopt->area_itree.rb_root));
WARN_ON(!RB_EMPTY_ROOT(&pages->access_itree.rb_root));
WARN_ON(!RB_EMPTY_ROOT(&pages->domains_itree.rb_root));
if (!RB_EMPTY_ROOT(&buf->keys)) {
RB_EMPTY_ROOT(&dc->writeback_keys.keys)) {
WARN_ON_ONCE(!RB_EMPTY_ROOT(&bc->trees[i].root));
if (!RB_EMPTY_ROOT(&cc->write_tree))
} while (!RB_EMPTY_ROOT(&write_tree));
if (RB_EMPTY_ROOT(&cc->write_tree))
BUG_ON(!RB_EMPTY_ROOT(&ic->in_progress));
BUG_ON(!RB_EMPTY_ROOT(&ic->in_progress));
WARN_ON(!RB_EMPTY_ROOT(&tc->sort_bio_list));
while (!RB_EMPTY_ROOT(&tm->buckets[i])) {
while (!RB_EMPTY_ROOT(root)) {
return RB_EMPTY_ROOT(&nf->refcount);
while (!RB_EMPTY_ROOT(&bdev->allocated_rbtree))
WARN_ON(!RB_EMPTY_ROOT(&dma->pfn_list));
if (!RB_EMPTY_ROOT(&dma->pfn_list)) {
if (!RB_EMPTY_ROOT(&p->volumes))
if (RB_EMPTY_ROOT(&p->volumes))
WARN_ON(!RB_EMPTY_ROOT(&preftrees.indirect_missing_keys.root.rb_root));
WARN_ON(!RB_EMPTY_ROOT(&preftrees.indirect.root.rb_root));
if (RB_EMPTY_ROOT(&node->ins_root.rb_root)) {
if (RB_EMPTY_ROOT(&head->ref_tree.rb_root))
if (RB_EMPTY_ROOT(&head->ref_tree.rb_root))
ASSERT(RB_EMPTY_ROOT(&tree->state));
if (!RB_EMPTY_ROOT(&head->ref_tree.rb_root) || head->extent_op) {
if (!RB_EMPTY_ROOT(&head->ref_tree.rb_root))
if (RB_EMPTY_ROOT(&tree->root)) {
while (!RB_EMPTY_ROOT(&io_tree->state)) {
if (RB_EMPTY_ROOT(&blocks->blocks[i])) {
if (!RB_EMPTY_ROOT(&blocks)) {
if (RB_EMPTY_ROOT(&sctx->waiting_dir_moves))
WARN_ON(sctx && !ret && !RB_EMPTY_ROOT(&sctx->pending_dir_moves));
while (sctx && !RB_EMPTY_ROOT(&sctx->pending_dir_moves)) {
WARN_ON(sctx && !ret && !RB_EMPTY_ROOT(&sctx->waiting_dir_moves));
while (sctx && !RB_EMPTY_ROOT(&sctx->waiting_dir_moves)) {
WARN_ON(sctx && !ret && !RB_EMPTY_ROOT(&sctx->orphan_dirs));
while (sctx && !RB_EMPTY_ROOT(&sctx->orphan_dirs)) {
while (!RB_EMPTY_ROOT(&em_tree->root)) {
if (!RB_EMPTY_ROOT(&fs_info->tree_mod_log))
while (!RB_EMPTY_ROOT(&fs_info->mapping_tree.rb_root)) {
while (!RB_EMPTY_ROOT(&mdsc->pool_perm_tree)) {
} else if (!RB_EMPTY_ROOT(&ci->i_fragtree)) {
if (!cap && !RB_EMPTY_ROOT(&ci->i_caps))
if (RB_EMPTY_ROOT(&mdsc->request_tree))
while (!RB_EMPTY_ROOT(&mdsc->quotarealms_inodes)) {
return !RB_EMPTY_ROOT(&ci->i_caps);
WARN_ON_ONCE(!RB_EMPTY_ROOT(&ep->rbr.rb_root));
WARN_ON_ONCE(!RB_EMPTY_ROOT(&grinfo->bb_free_root));
if (RB_EMPTY_ROOT(&ei->i_prealloc_node)) {
if (RB_EMPTY_ROOT(&root->rb_root))
if (RB_EMPTY_ROOT(&root->rb_root))
WARN_ON_ONCE(!RB_EMPTY_ROOT(&dentry_hash[i].tree));
if (RB_EMPTY_ROOT(&sdp->sd_rindex_tree)) {
if (!RB_EMPTY_ROOT(&mapping->i_mmap.rb_root))
if (!RB_EMPTY_ROOT(&mapping->i_mmap.rb_root))
return RB_EMPTY_ROOT(&ns->mounts);
if (RB_EMPTY_ROOT(&wnd->start_tree)) {
if (!RB_EMPTY_ROOT(&wnd->start_tree) && len)
if (!RB_EMPTY_ROOT(&wnd->start_tree))
if (RB_EMPTY_ROOT(&wnd->start_tree))
if (RB_EMPTY_ROOT(&wnd->start_tree))
goal, wanted, RB_EMPTY_ROOT(root));
if (RB_EMPTY_ROOT(root)) {
WARN_ON(!RB_EMPTY_ROOT(&set->dir.root));
if (!RB_EMPTY_ROOT(&dir->root))
} else if (write && !RB_EMPTY_ROOT(&c->buds) &&
if (RB_EMPTY_ROOT(&eb->eb_tree))
res = RB_EMPTY_ROOT(&eb->eb_tree);
return !RB_EMPTY_ROOT(&mapping->i_mmap.rb_root);
WARN_ON_ONCE(!RB_EMPTY_ROOT(&kn->dir.children));
return RB_EMPTY_ROOT(&slots->gfn_tree);
if (RB_EMPTY_ROOT(&tp->out_of_order_queue) &&
return RB_EMPTY_ROOT(&sk->tcp_rtx_queue);
ofo_empty = RB_EMPTY_ROOT(&msk->out_of_order_queue);
__entry->ooo_space = RB_EMPTY_ROOT(&tp->out_of_order_queue) ? 0 :
WARN_ON(!RB_EMPTY_ROOT(&map->root));
RB_EMPTY_ROOT(&groups->tree));
if (!RB_EMPTY_ROOT(&ctx->pinned_groups.tree)) {
if (!RB_EMPTY_ROOT(&ctx->pinned_groups.tree))
#define no_uprobe_events() RB_EMPTY_ROOT(&uprobes_tree)
DEBUG_LOCKS_WARN_ON(!RB_EMPTY_ROOT(&task->pi_waiters.rb_root));
return !RB_EMPTY_ROOT(&lock->waiters.rb_root);
return !RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
WARN_ON_ONCE(!RB_EMPTY_ROOT(&cpu_rq(cpu)->core_tree));
return !RB_EMPTY_ROOT(&rq->dl.pushable_dl_tasks_root.rb_root);
if (unlikely(RB_EMPTY_ROOT(&dsq->priq) &&
if (unlikely(!RB_EMPTY_ROOT(&dsq->priq)))
return !RB_EMPTY_ROOT(&head->rb_root.rb_root);
if (!mctz || RB_EMPTY_ROOT(&mctz->rb_root))
if (unlikely(!RB_EMPTY_ROOT(&mapping->i_mmap.rb_root)))
if (unlikely(!RB_EMPTY_ROOT(&mapping->i_mmap.rb_root)))
if (RB_EMPTY_ROOT(&anon_vma->rb_root.rb_root)) {
while (!RB_EMPTY_ROOT(&sis->swap_extent_root)) {
if (RB_EMPTY_ROOT(&vn->lazy.root))
WARN_ON(!RB_EMPTY_ROOT(&eht_set->entry_tree));
if (RB_EMPTY_ROOT(&eht_set->entry_tree))
if (RB_EMPTY_ROOT(&eht_set->entry_tree)) {
RB_EMPTY_ROOT(&pg->eht_host_tree));
if (!RB_EMPTY_ROOT(&opt->crush_locs)) {
WARN_ON(!RB_EMPTY_ROOT(&monc->generic_request_tree));
WARN_ON(!RB_EMPTY_ROOT(&osd->o_requests));
WARN_ON(!RB_EMPTY_ROOT(&osd->o_linger_requests));
WARN_ON(!RB_EMPTY_ROOT(&osd->o_backoff_mappings));
WARN_ON(!RB_EMPTY_ROOT(&osd->o_backoffs_by_id));
if (RB_EMPTY_ROOT(&osd->o_requests) &&
RB_EMPTY_ROOT(&osd->o_linger_requests))
if (RB_EMPTY_ROOT(&osd->o_requests) &&
RB_EMPTY_ROOT(&osd->o_linger_requests)) {
WARN_ON(!RB_EMPTY_ROOT(&spg->backoffs));
while (!RB_EMPTY_ROOT(&osd->o_backoff_mappings)) {
while (!RB_EMPTY_ROOT(&spg->backoffs)) {
WARN_ON(!RB_EMPTY_ROOT(&osd->o_requests));
WARN_ON(!RB_EMPTY_ROOT(&osd->o_linger_requests));
if (RB_EMPTY_ROOT(&spg->backoffs)) {
while (!RB_EMPTY_ROOT(&osdc->osds)) {
WARN_ON(!RB_EMPTY_ROOT(&osdc->linger_requests));
WARN_ON(!RB_EMPTY_ROOT(&osdc->map_checks));
WARN_ON(!RB_EMPTY_ROOT(&osdc->linger_map_checks));
while (!RB_EMPTY_ROOT(&map->pg_temp)) {
while (!RB_EMPTY_ROOT(&map->primary_temp)) {
while (!RB_EMPTY_ROOT(&map->pg_upmap)) {
while (!RB_EMPTY_ROOT(&map->pg_upmap_items)) {
while (!RB_EMPTY_ROOT(&map->pg_pools)) {
WARN_ON(!RB_EMPTY_ROOT(&map->pg_upmap));
WARN_ON(!RB_EMPTY_ROOT(&map->pg_upmap_items));
while (!RB_EMPTY_ROOT(root)) {
while (!RB_EMPTY_ROOT(&c->choose_args)) {
while (!RB_EMPTY_ROOT(locs)) {
return RB_EMPTY_ROOT(&string_tree);
if (RB_EMPTY_ROOT(&tp->out_of_order_queue)) {
if (RB_EMPTY_ROOT(&tp->out_of_order_queue)) {
if (!RB_EMPTY_ROOT(&tp->out_of_order_queue)) {
if (RB_EMPTY_ROOT(&tp->out_of_order_queue))
if (RB_EMPTY_ROOT(&tp->out_of_order_queue))
if (!ofo_possible || RB_EMPTY_ROOT(&tp->out_of_order_queue)) {
if (!RB_EMPTY_ROOT(&tp->out_of_order_queue))
RB_EMPTY_ROOT(&msk->out_of_order_queue));
if (RB_EMPTY_ROOT(&msk->out_of_order_queue)) {
pr_debug("msk=%p empty=%d\n", msk, RB_EMPTY_ROOT(&msk->out_of_order_queue));
if (!RB_EMPTY_ROOT(&msk->out_of_order_queue))
while (!RB_EMPTY_ROOT(&rx->pending_oobq)) {
if (RB_EMPTY_ROOT(&rx->calls) &&
conns = RB_EMPTY_ROOT(&lgr->conns_all);
if (RB_EMPTY_ROOT(&xprt->recv_queue) && xprt_has_timer(xprt))
if (!RB_EMPTY_ROOT(&xprt->recv_queue))
if (RB_EMPTY_ROOT(&sc->ranges) && list_empty(&sc->subscriptions)) {
if (RB_EMPTY_ROOT(&sc->ranges) && list_empty(&sc->subscriptions)) {
if (!hlist_empty(&node->hhead) || !RB_EMPTY_ROOT(&node->root)) {
if (!RB_EMPTY_ROOT(&b->root_d) || !RB_EMPTY_ROOT(&b->root_s) ||
WARN_ON_ONCE(!RB_EMPTY_ROOT(&n->root));
while (!RB_EMPTY_ROOT(root)) {
while (!RB_EMPTY_ROOT(&root_out->rb_root)) {
TEST_ASSERT_VAL("callchains expected", !RB_EMPTY_ROOT(root));
while (!RB_EMPTY_ROOT(&root_out->rb_root)) {
!RB_EMPTY_ROOT(&child->rb_root);
!RB_EMPTY_ROOT(&child->rb_root);
chain->has_children = !RB_EMPTY_ROOT(&node->rb_root);
he->has_children = !RB_EMPTY_ROOT(&he->sorted_chain);
he->has_children = !RB_EMPTY_ROOT(&he->hroot_out.rb_root);
while (!RB_EMPTY_ROOT(root)) {
while (!RB_EMPTY_ROOT(root)) {
if (RB_EMPTY_ROOT(dso__global_vars(dso)))
if (RB_EMPTY_ROOT(root)) {
if (!RB_EMPTY_ROOT(&cgroups)) {
while (!RB_EMPTY_ROOT(&con->cgroups)) {
while (!RB_EMPTY_ROOT(&env->cgroups.tree)) {
return !RB_EMPTY_ROOT(&RC_CHK_ACCESS(dso)->symbols.rb_root);
while (!RB_EMPTY_ROOT(&root->rb_root)) {