• Home
  • Raw
  • Download

Lines Matching refs:ubifs_assert

181 		ubifs_assert(cpos >= b);  in add_to_lpt_heap()
182 ubifs_assert(cpos < LPT_HEAP_SZ); in add_to_lpt_heap()
183 ubifs_assert(cpos < heap->cnt); in add_to_lpt_heap()
224 ubifs_assert(hpos >= 0 && hpos < heap->cnt); in remove_from_lpt_heap()
225 ubifs_assert(heap->arr[hpos] == lprops); in remove_from_lpt_heap()
292 ubifs_assert(0); in ubifs_add_to_cat()
298 ubifs_assert(c->in_a_category_cnt <= c->main_lebs); in ubifs_add_to_cat()
320 ubifs_assert(c->freeable_cnt >= 0); in ubifs_remove_from_cat()
325 ubifs_assert(!list_empty(&lprops->list)); in ubifs_remove_from_cat()
329 ubifs_assert(0); in ubifs_remove_from_cat()
333 ubifs_assert(c->in_a_category_cnt >= 0); in ubifs_remove_from_cat()
365 ubifs_assert(0); in ubifs_replace_cat()
408 ubifs_assert(!(lprops->flags & LPROPS_INDEX)); in ubifs_categorize_lprops()
474 ubifs_assert(!(spc & 7)); in ubifs_calc_dark()
539 ubifs_assert(mutex_is_locked(&c->lp_mutex)); in ubifs_change_lp()
540 ubifs_assert(c->lst.empty_lebs >= 0 && in ubifs_change_lp()
542 ubifs_assert(c->freeable_cnt >= 0); in ubifs_change_lp()
543 ubifs_assert(c->freeable_cnt <= c->main_lebs); in ubifs_change_lp()
544 ubifs_assert(c->lst.taken_empty_lebs >= 0); in ubifs_change_lp()
545 ubifs_assert(c->lst.taken_empty_lebs <= c->lst.empty_lebs); in ubifs_change_lp()
546 ubifs_assert(!(c->lst.total_free & 7) && !(c->lst.total_dirty & 7)); in ubifs_change_lp()
547 ubifs_assert(!(c->lst.total_dead & 7) && !(c->lst.total_dark & 7)); in ubifs_change_lp()
548 ubifs_assert(!(c->lst.total_used & 7)); in ubifs_change_lp()
549 ubifs_assert(free == LPROPS_NC || free >= 0); in ubifs_change_lp()
550 ubifs_assert(dirty == LPROPS_NC || dirty >= 0); in ubifs_change_lp()
557 ubifs_assert(lprops == ubifs_lpt_lookup_dirty(c, lprops->lnum)); in ubifs_change_lp()
559 ubifs_assert(!(lprops->free & 7) && !(lprops->dirty & 7)); in ubifs_change_lp()
764 ubifs_assert(mutex_is_locked(&c->lp_mutex)); in ubifs_fast_find_free()
771 ubifs_assert(!(lprops->flags & LPROPS_TAKEN)); in ubifs_fast_find_free()
772 ubifs_assert(!(lprops->flags & LPROPS_INDEX)); in ubifs_fast_find_free()
787 ubifs_assert(mutex_is_locked(&c->lp_mutex)); in ubifs_fast_find_empty()
793 ubifs_assert(!(lprops->flags & LPROPS_TAKEN)); in ubifs_fast_find_empty()
794 ubifs_assert(!(lprops->flags & LPROPS_INDEX)); in ubifs_fast_find_empty()
795 ubifs_assert(lprops->free == c->leb_size); in ubifs_fast_find_empty()
810 ubifs_assert(mutex_is_locked(&c->lp_mutex)); in ubifs_fast_find_freeable()
816 ubifs_assert(!(lprops->flags & LPROPS_TAKEN)); in ubifs_fast_find_freeable()
817 ubifs_assert(!(lprops->flags & LPROPS_INDEX)); in ubifs_fast_find_freeable()
818 ubifs_assert(lprops->free + lprops->dirty == c->leb_size); in ubifs_fast_find_freeable()
819 ubifs_assert(c->freeable_cnt > 0); in ubifs_fast_find_freeable()
834 ubifs_assert(mutex_is_locked(&c->lp_mutex)); in ubifs_fast_find_frdi_idx()
840 ubifs_assert(!(lprops->flags & LPROPS_TAKEN)); in ubifs_fast_find_frdi_idx()
841 ubifs_assert((lprops->flags & LPROPS_INDEX)); in ubifs_fast_find_frdi_idx()
842 ubifs_assert(lprops->free + lprops->dirty == c->leb_size); in ubifs_fast_find_frdi_idx()