Lines Matching refs:assert
71 assert(q->head < countof(q->entry)); in block_allocator_queue_empty()
72 assert(q->tail < countof(q->entry)); in block_allocator_queue_empty()
100 assert(q->head < countof(q->entry)); in block_allocator_queue_find()
101 assert(q->tail < countof(q->entry)); in block_allocator_queue_find()
122 assert(block_allocator_queue_empty(q)); in block_allocator_queue_add_removed()
147 assert(index < countof(q->entry)); in block_allocator_queue_add()
148 assert(q->entry[index].tmp == is_tmp); in block_allocator_queue_add()
149 assert(q->entry[index].free != is_free); in block_allocator_queue_add()
162 assert(q->head < countof(q->entry)); in block_allocator_queue_add()
163 assert(q->tail < countof(q->entry)); in block_allocator_queue_add()
164 assert(new_tail < countof(q->entry)); in block_allocator_queue_add()
165 assert(new_tail != q->head); in block_allocator_queue_add()
168 assert(q->entry[q->tail].block == block); in block_allocator_queue_add()
185 assert(!block_allocator_queue_empty(q)); in block_allocator_queue_peek_head()
198 assert(block_allocator_queue_peek_head(q).block == entry.block); in block_allocator_queue_remove_head()
253 assert(list_in_list(&tr->node)); /* transaction must be active */ in find_free_block()
271 assert(block >= min_block); in find_free_block()
291 assert(block >= min_block); in find_free_block()
293 assert(!list_is_empty(&tr->fs->allocated)); in find_free_block()
299 assert(block >= min_block); in find_free_block()
303 assert(block >= min_block); in find_free_block()
361 assert(transaction_is_active(tr)); in block_allocate_etc()
424 assert(tr->new_free_set); in block_allocator_add_allocated()
441 assert(block_is_clean(tr->fs->dev, block)); in block_free_etc()
464 assert(block_is_clean(tr->fs->dev, block)); in block_allocator_add_free()
466 assert(!block_set_block_in_set(tr, &tr->allocated, block)); in block_allocator_add_free()
467 assert(!block_set_block_in_set(tr, &tr->freed, block)); in block_allocator_add_free()
476 assert(!block_set_block_in_set(tr, &tr->tmp_allocated, block)); in block_allocator_add_free()
485 assert(tr->new_free_set); in block_allocator_add_free()
492 assert(tr->new_free_set); in block_allocator_add_free()
538 assert(!block_allocator_queue.updating); in block_allocator_process_queue()
542 assert(loop_limit-- > 0); in block_allocator_process_queue()