/u-boot/fs/ubifs/ |
A D | budget.c | 438 ubifs_assert(req->new_page <= 1); in ubifs_budget_space() 440 ubifs_assert(req->new_dent <= 1); in ubifs_budget_space() 441 ubifs_assert(req->mod_dent <= 1); in ubifs_budget_space() 442 ubifs_assert(req->new_ino <= 1); in ubifs_budget_space() 459 ubifs_assert(c->bi.dd_growth >= 0); in ubifs_budget_space() 525 ubifs_assert(req->new_page <= 1); in ubifs_release_budget() 527 ubifs_assert(req->new_dent <= 1); in ubifs_release_budget() 528 ubifs_assert(req->mod_dent <= 1); in ubifs_release_budget() 529 ubifs_assert(req->new_ino <= 1); in ubifs_release_budget() 538 ubifs_assert(req->dd_growth >= 0); in ubifs_release_budget() [all …]
|
A D | gc.c | 78 ubifs_assert(gc_lnum != -1); in switch_gc_head() 132 ubifs_assert(sa->type == UBIFS_DATA_NODE); in data_nodes_cmp() 133 ubifs_assert(sb->type == UBIFS_DATA_NODE); in data_nodes_cmp() 470 ubifs_assert(c->gc_lnum != lnum); in ubifs_garbage_collect_leb() 471 ubifs_assert(wbuf->lnum != lnum); in ubifs_garbage_collect_leb() 512 ubifs_assert(!list_empty(&sleb->nodes)); in ubifs_garbage_collect_leb() 660 ubifs_assert(!wbuf->used); in ubifs_garbage_collect() 751 ubifs_assert(ret == LEB_RETAINED); in ubifs_garbage_collect() 811 ubifs_assert(ret < 0); in ubifs_garbage_collect() 884 ubifs_assert(lp->flags & LPROPS_INDEX); in ubifs_gc_start_commit() [all …]
|
A D | io.c | 119 ubifs_assert(!c->ro_media && !c->ro_mount); in ubifs_leb_write() 141 ubifs_assert(!c->ro_media && !c->ro_mount); in ubifs_leb_change() 327 ubifs_assert(pad >= 0 && !(pad & 7)); in ubifs_pad() 390 ubifs_assert(len >= UBIFS_CH_SZ); in ubifs_prepare_node() 423 ubifs_assert(len >= UBIFS_CH_SZ); in ubifs_prep_grp_node() 514 ubifs_assert(!(wbuf->avail & 7)); in ubifs_wbuf_sync_nolock() 585 ubifs_assert(lnum != wbuf->lnum); in ubifs_wbuf_seek_nolock() 586 ubifs_assert(wbuf->used == 0); in ubifs_wbuf_seek_nolock() 702 ubifs_assert(!c->space_fixup); in ubifs_wbuf_write_nolock() 879 ubifs_assert(!c->space_fixup); in ubifs_write_node() [all …]
|
A D | lprops.c | 183 ubifs_assert(cpos >= b); in add_to_lpt_heap() 184 ubifs_assert(cpos < LPT_HEAP_SZ); in add_to_lpt_heap() 185 ubifs_assert(cpos < heap->cnt); in add_to_lpt_heap() 294 ubifs_assert(0); in ubifs_add_to_cat() 322 ubifs_assert(c->freeable_cnt >= 0); in ubifs_remove_from_cat() 331 ubifs_assert(0); in ubifs_remove_from_cat() 367 ubifs_assert(0); in ubifs_replace_cat() 476 ubifs_assert(!(spc & 7)); in ubifs_calc_dark() 542 ubifs_assert(c->lst.empty_lebs >= 0 && in ubifs_change_lp() 544 ubifs_assert(c->freeable_cnt >= 0); in ubifs_change_lp() [all …]
|
A D | tnc_misc.c | 39 ubifs_assert(zr); in ubifs_tnc_levelorder_next() 54 ubifs_assert(znode->level <= zr->level); in ubifs_tnc_levelorder_next() 81 ubifs_assert(znode); in ubifs_tnc_levelorder_next() 107 ubifs_assert(zn->level >= 0); in ubifs_tnc_levelorder_next() 136 ubifs_assert(end > beg); in ubifs_search_zbranch() 154 ubifs_assert(*n >= -1 && *n < znode->child_cnt); in ubifs_search_zbranch() 156 ubifs_assert(keys_cmp(c, key, &zbr[0].key) < 0); in ubifs_search_zbranch() 158 ubifs_assert(keys_cmp(c, key, &zbr[*n].key) > 0); in ubifs_search_zbranch() 200 ubifs_assert(znode); in ubifs_tnc_postorder_next() 227 ubifs_assert(zn); in ubifs_destroy_tnc_subtree() [all …]
|
A D | misc.h | 102 ubifs_assert(compr_type >= 0 && compr_type < UBIFS_COMPR_TYPES_CNT); in ubifs_compr_present() 114 ubifs_assert(compr_type >= 0 && compr_type < UBIFS_COMPR_TYPES_CNT); in ubifs_compr_name() 277 ubifs_assert(mutex_is_locked(&c->lp_mutex)); in ubifs_release_lprops() 278 ubifs_assert(c->lst.empty_lebs >= 0 && in ubifs_release_lprops()
|
A D | tnc.c | 319 ubifs_assert(!zbr->leaf); in lnc_add() 353 ubifs_assert(!zbr->leaf); in lnc_add_directly() 707 ubifs_assert(*n == 0); in resolve_collision() 747 ubifs_assert(0); in resolve_collision() 829 ubifs_assert(err == 1); in fallible_matches_name() 908 ubifs_assert(*n == 0); in fallible_resolve_collision() 920 ubifs_assert(0); in fallible_resolve_collision() 1086 ubifs_assert(znode); in dirty_cow_bottom_up() 1812 ubifs_assert(n >= 0); in do_lookup_nm() 3021 ubifs_assert(n >= 0); in lookup_znode() [all …]
|
A D | key.h | 146 ubifs_assert(!(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init() 163 ubifs_assert(!(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init_hash() 181 ubifs_assert(!(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init_flash() 214 ubifs_assert(!(hash & ~UBIFS_S_KEY_HASH_MASK)); in xent_key_init() 232 ubifs_assert(!(hash & ~UBIFS_S_KEY_HASH_MASK)); in xent_key_init_flash() 263 ubifs_assert(!(block & ~UBIFS_S_KEY_BLOCK_MASK)); in data_key_init()
|
A D | orphan.c | 166 ubifs_assert(orphan->new); in ubifs_orphan_start_commit() 167 ubifs_assert(!orphan->cmt); in ubifs_orphan_start_commit() 238 ubifs_assert(c->ohead_offs == 0); in do_write_orph_node() 270 ubifs_assert(c->cmt_orphans > 0); in write_orph_node() 289 ubifs_assert(c->orph_buf); in write_orph_node() 296 ubifs_assert(orphan->cmt); in write_orph_node() 311 ubifs_assert(c->ohead_lnum >= c->orph_first); in write_orph_node() 312 ubifs_assert(c->ohead_lnum <= c->orph_last); in write_orph_node() 409 ubifs_assert(c->cmt_orphans > 0); in commit_orphans() 440 ubifs_assert(!orphan->new); in erase_deleted() [all …]
|
A D | debug.h | 140 #define ubifs_assert(expr) do { \ macro 152 ubifs_assert(0); \ 168 #define ubifs_assert(expr) do { \ macro 180 ubifs_assert(0); \
|
A D | lpt.c | 235 ubifs_assert(nrbits > 0); in pack_bits() 236 ubifs_assert(nrbits <= 32); in pack_bits() 237 ubifs_assert(*pos >= 0); in pack_bits() 238 ubifs_assert(*pos < 8); in pack_bits() 288 ubifs_assert(nrbits > 0); in ubifs_unpack_bits() 289 ubifs_assert(nrbits <= 32); in ubifs_unpack_bits() 290 ubifs_assert(*pos >= 0); in ubifs_unpack_bits() 291 ubifs_assert(*pos < 8); in ubifs_unpack_bits() 638 ubifs_assert(!c->ltab); in ubifs_create_dflt_lpt() 2062 ubifs_assert(h >= 0); in ubifs_lpt_scan_nolock() [all …]
|
A D | log.c | 128 ubifs_assert(bud->lnum != b->lnum); in ubifs_add_bud() 141 ubifs_assert(c->replaying && c->ro_mount); in ubifs_add_bud() 185 ubifs_assert(!c->ro_media && !c->ro_mount); in ubifs_add_bud_to_log() 240 ubifs_assert(c->lhead_lnum != c->ltail_lnum); in ubifs_add_bud_to_log() 297 ubifs_assert(list_empty(&c->old_buds)); in remove_buds() 405 ubifs_assert(c->lhead_lnum != c->ltail_lnum); in ubifs_log_start_commit()
|
A D | lpt_commit.c | 43 ubifs_assert(nnode); in first_dirty_cnode() 76 ubifs_assert(cnode); in next_dirty_cnode() 240 ubifs_assert(lnum >= c->lpt_first && in layout_cnodes() 283 ubifs_assert(lnum >= c->lpt_first && in layout_cnodes() 303 ubifs_assert(lnum >= c->lpt_first && in layout_cnodes() 427 ubifs_assert(lnum >= c->lpt_first && in write_cnodes() 484 ubifs_assert(lnum >= c->lpt_first && in write_cnodes() 811 ubifs_assert(c->big_lpt); in populate_lsave() 1177 ubifs_assert(node_len != 0); in lpt_gc_lnum() 1202 ubifs_assert(!c->ltab[i].tgc); in lpt_gc() [all …]
|
A D | super.c | 483 ubifs_assert(!ui->xattr); in ubifs_write_inode() 1287 ubifs_assert(c->bulk_read == 1); in bu_init() 1319 ubifs_assert(c->dark_wm > 0); in check_free_space() 1835 ubifs_assert(c->tot_orphans == 0); in ubifs_remount_rw() 1951 ubifs_assert(!c->need_recovery); in ubifs_remount_ro() 1952 ubifs_assert(!c->ro_mount); in ubifs_remount_ro() 1999 ubifs_assert(c->bi.idx_growth == 0); in ubifs_put_super() 2000 ubifs_assert(c->bi.dd_growth == 0); in ubifs_put_super() 2001 ubifs_assert(c->bi.data_growth == 0); in ubifs_put_super() 2304 ubifs_assert(err < 0); in ubifs_fill_super() [all …]
|
A D | replay.c | 282 ubifs_assert(ra->sqnum != rb->sqnum); in replay_entries_cmp() 669 ubifs_assert(ubifs_search_bud(c, lnum)); in replay_bud() 670 ubifs_assert(sleb->endpt - offs >= used); in replay_bud() 671 ubifs_assert(sleb->endpt % c->min_io_size == 0); in replay_bud() 707 ubifs_assert(b->sqnum > prev_sqnum); in replay_buds() 1068 ubifs_assert(c->bud_bytes <= c->max_bud_bytes || c->need_recovery); in ubifs_replay_journal()
|
A D | sb.c | 554 ubifs_assert(!c->ro_media || c->ro_mount); in ubifs_read_superblock() 685 ubifs_assert(len >= 0); in fixup_leb() 686 ubifs_assert(len % c->min_io_size == 0); in fixup_leb() 687 ubifs_assert(len < c->leb_size); in fixup_leb() 797 ubifs_assert(c->space_fixup); in ubifs_fixup_free_space() 798 ubifs_assert(!c->ro_mount); in ubifs_fixup_free_space()
|
A D | recovery.c | 445 ubifs_assert(!(*offs & 7)); in clean_buf() 647 ubifs_assert(len >= 8); in ubifs_recover_leb() 969 ubifs_assert(!c->ro_mount || c->remounting_rw); in ubifs_recover_inl_heads() 1191 ubifs_assert(!(lp.flags & LPROPS_INDEX)); in ubifs_rcvry_gc_commit() 1192 ubifs_assert(lp.free + lp.dirty >= wbuf->offs); in ubifs_rcvry_gc_commit() 1220 ubifs_assert(err == LEB_RETAINED); in ubifs_rcvry_gc_commit() 1520 ubifs_assert(!e->inode); in ubifs_recover_size()
|
A D | ubifs.c | 345 ubifs_assert(le64_to_cpu(dent->ch.sqnum) > ubifs_inode(dir)->creat_sqnum); in ubifs_printdir() 429 ubifs_assert(le64_to_cpu(dent->ch.sqnum) > ubifs_inode(dir)->creat_sqnum); in ubifs_finddir() 692 ubifs_assert(le64_to_cpu(dn->ch.sqnum) > ubifs_inode(inode)->creat_sqnum); in read_block()
|
A D | scan.c | 174 ubifs_assert(offs % c->min_io_size == 0); in ubifs_end_scan()
|
A D | debug.c | 137 ubifs_assert(len > 0); in dbg_snprintf_key() 280 ubifs_assert(!mutex_is_locked(&c->tnc_mutex)); in ubifs_dump_inode() 1192 ubifs_assert(!keys_cmp(c, &zbr1->key, &zbr2->key)); in dbg_check_key_order() 1517 ubifs_assert(mutex_is_locked(&c->tnc_mutex)); in dbg_check_tnc() 2081 ubifs_assert(zbr->len >= UBIFS_DATA_NODE_SZ); in check_leaf() 2111 ubifs_assert(zbr->len >= UBIFS_DENT_NODE_SZ); in check_leaf() 2506 ubifs_assert(dbg_is_tst_rcvry(c)); in power_cut_emulated()
|
A D | master.c | 361 ubifs_assert(!c->ro_media && !c->ro_mount); in ubifs_write_master()
|