/external/u-boot/fs/ubifs/ |
D | budget.c | 437 ubifs_assert(req->new_page <= 1); in ubifs_budget_space() 438 ubifs_assert(req->dirtied_page <= 1); in ubifs_budget_space() 439 ubifs_assert(req->new_dent <= 1); in ubifs_budget_space() 440 ubifs_assert(req->mod_dent <= 1); in ubifs_budget_space() 441 ubifs_assert(req->new_ino <= 1); in ubifs_budget_space() 442 ubifs_assert(req->new_ino_d <= UBIFS_MAX_INO_DATA); in ubifs_budget_space() 443 ubifs_assert(req->dirtied_ino <= 4); in ubifs_budget_space() 444 ubifs_assert(req->dirtied_ino_d <= UBIFS_MAX_INO_DATA * 4); in ubifs_budget_space() 445 ubifs_assert(!(req->new_ino_d & 7)); in ubifs_budget_space() 446 ubifs_assert(!(req->dirtied_ino_d & 7)); in ubifs_budget_space() [all …]
|
D | gc.c | 76 ubifs_assert(gc_lnum != -1); in switch_gc_head() 128 ubifs_assert(key_type(c, &sa->key) == UBIFS_DATA_KEY); in data_nodes_cmp() 129 ubifs_assert(key_type(c, &sb->key) == UBIFS_DATA_KEY); in data_nodes_cmp() 130 ubifs_assert(sa->type == UBIFS_DATA_NODE); in data_nodes_cmp() 131 ubifs_assert(sb->type == UBIFS_DATA_NODE); in data_nodes_cmp() 172 ubifs_assert(key_type(c, &sa->key) != UBIFS_DATA_KEY && in nondata_nodes_cmp() 174 ubifs_assert(sa->type != UBIFS_DATA_NODE && in nondata_nodes_cmp() 186 ubifs_assert(key_type(c, &sa->key) == UBIFS_DENT_KEY || in nondata_nodes_cmp() 188 ubifs_assert(key_type(c, &sb->key) == UBIFS_DENT_KEY || in nondata_nodes_cmp() 190 ubifs_assert(sa->type == UBIFS_DENT_NODE || in nondata_nodes_cmp() [all …]
|
D | io.c | 115 ubifs_assert(!c->ro_media && !c->ro_mount); in ubifs_leb_write() 137 ubifs_assert(!c->ro_media && !c->ro_mount); in ubifs_leb_change() 159 ubifs_assert(!c->ro_media && !c->ro_mount); in ubifs_leb_unmap() 180 ubifs_assert(!c->ro_media && !c->ro_mount); in ubifs_leb_map() 245 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node() 246 ubifs_assert(!(offs & 7) && offs < c->leb_size); in ubifs_check_node() 323 ubifs_assert(pad >= 0 && !(pad & 7)); in ubifs_pad() 386 ubifs_assert(len >= UBIFS_CH_SZ); in ubifs_prepare_node() 419 ubifs_assert(len >= UBIFS_CH_SZ); in ubifs_prep_grp_node() 457 ubifs_assert(!hrtimer_active(&wbuf->timer)); in new_wbuf_timer_nolock() [all …]
|
D | lprops.c | 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() [all …]
|
D | tnc_misc.c | 37 ubifs_assert(zr); in ubifs_tnc_levelorder_next() 52 ubifs_assert(znode->level <= zr->level); in ubifs_tnc_levelorder_next() 79 ubifs_assert(znode); in ubifs_tnc_levelorder_next() 105 ubifs_assert(zn->level >= 0); in ubifs_tnc_levelorder_next() 134 ubifs_assert(end > beg); in ubifs_search_zbranch() 152 ubifs_assert(*n >= -1 && *n < znode->child_cnt); in ubifs_search_zbranch() 154 ubifs_assert(keys_cmp(c, key, &zbr[0].key) < 0); in ubifs_search_zbranch() 156 ubifs_assert(keys_cmp(c, key, &zbr[*n].key) > 0); in ubifs_search_zbranch() 158 ubifs_assert(keys_cmp(c, key, &zbr[*n + 1].key) < 0); in ubifs_search_zbranch() 198 ubifs_assert(znode); in ubifs_tnc_postorder_next() [all …]
|
D | tnc.c | 204 ubifs_assert(!ubifs_zn_obsolete(znode)); in copy_znode() 314 ubifs_assert(!zbr->leaf); in lnc_add() 315 ubifs_assert(zbr->len != 0); in lnc_add() 316 ubifs_assert(is_hash_key(c, &zbr->key)); in lnc_add() 348 ubifs_assert(!zbr->leaf); in lnc_add_directly() 349 ubifs_assert(zbr->len != 0); in lnc_add_directly() 391 ubifs_assert(is_hash_key(c, &zbr->key)); in tnc_read_node_nm() 395 ubifs_assert(zbr->len != 0); in tnc_read_node_nm() 702 ubifs_assert(*n == 0); in resolve_collision() 742 ubifs_assert(0); in resolve_collision() [all …]
|
D | orphan.c | 164 ubifs_assert(orphan->new); in ubifs_orphan_start_commit() 165 ubifs_assert(!orphan->cmt); in ubifs_orphan_start_commit() 236 ubifs_assert(c->ohead_offs == 0); in do_write_orph_node() 268 ubifs_assert(c->cmt_orphans > 0); in write_orph_node() 287 ubifs_assert(c->orph_buf); in write_orph_node() 294 ubifs_assert(orphan->cmt); in write_orph_node() 308 ubifs_assert(c->ohead_offs + len <= c->leb_size); in write_orph_node() 309 ubifs_assert(c->ohead_lnum >= c->orph_first); in write_orph_node() 310 ubifs_assert(c->ohead_lnum <= c->orph_last); in write_orph_node() 380 ubifs_assert(cnt == c->tot_orphans - c->new_orphans); in consolidate() [all …]
|
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()
|
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()
|
D | lpt.c | 233 ubifs_assert(nrbits > 0); in pack_bits() 234 ubifs_assert(nrbits <= 32); in pack_bits() 235 ubifs_assert(*pos >= 0); in pack_bits() 236 ubifs_assert(*pos < 8); in pack_bits() 237 ubifs_assert((val >> nrbits) == 0 || nrbits == 32); in pack_bits() 286 ubifs_assert(nrbits > 0); in ubifs_unpack_bits() 287 ubifs_assert(nrbits <= 32); in ubifs_unpack_bits() 288 ubifs_assert(*pos >= 0); in ubifs_unpack_bits() 289 ubifs_assert(*pos < 8); in ubifs_unpack_bits() 335 ubifs_assert((val >> nrbits) == 0 || nrbits - b == 32); in ubifs_unpack_bits() [all …]
|
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); \
|
D | log.c | 126 ubifs_assert(bud->lnum != b->lnum); in ubifs_add_bud() 139 ubifs_assert(c->replaying && c->ro_mount); in ubifs_add_bud() 183 ubifs_assert(!c->ro_media && !c->ro_mount); in ubifs_add_bud_to_log() 238 ubifs_assert(c->lhead_lnum != c->ltail_lnum); in ubifs_add_bud_to_log() 295 ubifs_assert(list_empty(&c->old_buds)); in remove_buds() 403 ubifs_assert(c->lhead_lnum != c->ltail_lnum); in ubifs_log_start_commit()
|
D | lpt_commit.c | 40 ubifs_assert(nnode); in first_dirty_cnode() 73 ubifs_assert(cnode); in next_dirty_cnode() 112 ubifs_assert(!test_bit(COW_CNODE, &cnode->flags)); in get_cnodes_to_commit() 125 ubifs_assert(cnt == c->dirty_nn_cnt + c->dirty_pn_cnt); in get_cnodes_to_commit() 141 ubifs_assert(lnum >= c->lpt_first && lnum <= c->lpt_last); in upd_ltab() 237 ubifs_assert(lnum >= c->lpt_first && in layout_cnodes() 280 ubifs_assert(lnum >= c->lpt_first && in layout_cnodes() 300 ubifs_assert(lnum >= c->lpt_first && in layout_cnodes() 424 ubifs_assert(lnum >= c->lpt_first && in write_cnodes() 481 ubifs_assert(lnum >= c->lpt_first && in write_cnodes() [all …]
|
D | super.c | 479 ubifs_assert(!ui->xattr); in ubifs_write_inode() 532 ubifs_assert(!atomic_read(&inode->i_count)); in ubifs_evict_inode() 569 ubifs_assert(mutex_is_locked(&ui->ui_mutex)); in ubifs_dirty_inode() 600 ubifs_assert(buf->f_bfree <= c->block_cnt); in ubifs_statfs() 1283 ubifs_assert(c->bulk_read == 1); in bu_init() 1315 ubifs_assert(c->dark_wm > 0); in check_free_space() 1599 ubifs_assert(c->lst.taken_empty_lebs > 0); in mount_ubifs() 1602 ubifs_assert(c->lst.taken_empty_lebs > 0); in mount_ubifs() 1831 ubifs_assert(c->tot_orphans == 0); in ubifs_remount_rw() 1947 ubifs_assert(!c->need_recovery); in ubifs_remount_ro() [all …]
|
D | replay.c | 280 ubifs_assert(ra->sqnum != rb->sqnum); in replay_entries_cmp() 667 ubifs_assert(ubifs_search_bud(c, lnum)); in replay_bud() 668 ubifs_assert(sleb->endpt - offs >= used); in replay_bud() 669 ubifs_assert(sleb->endpt % c->min_io_size == 0); in replay_bud() 705 ubifs_assert(b->sqnum > prev_sqnum); in replay_buds() 1066 ubifs_assert(c->bud_bytes <= c->max_bud_bytes || c->need_recovery); in ubifs_replay_journal()
|
D | sb.c | 552 ubifs_assert(!c->ro_media || c->ro_mount); in ubifs_read_superblock() 683 ubifs_assert(len >= 0); in fixup_leb() 684 ubifs_assert(len % c->min_io_size == 0); in fixup_leb() 685 ubifs_assert(len < c->leb_size); in fixup_leb() 795 ubifs_assert(c->space_fixup); in ubifs_fixup_free_space() 796 ubifs_assert(!c->ro_mount); in ubifs_fixup_free_space()
|
D | recovery.c | 442 ubifs_assert(!(*offs & 7)); in clean_buf() 644 ubifs_assert(len >= 8); in ubifs_recover_leb() 966 ubifs_assert(!c->ro_mount || c->remounting_rw); in ubifs_recover_inl_heads() 1188 ubifs_assert(!(lp.flags & LPROPS_INDEX)); in ubifs_rcvry_gc_commit() 1189 ubifs_assert(lp.free + lp.dirty >= wbuf->offs); in ubifs_rcvry_gc_commit() 1217 ubifs_assert(err == LEB_RETAINED); in ubifs_rcvry_gc_commit() 1517 ubifs_assert(!e->inode); in ubifs_recover_size()
|
D | ubifs.c | 353 ubifs_assert(le64_to_cpu(dent->ch.sqnum) > ubifs_inode(dir)->creat_sqnum); in ubifs_printdir() 437 ubifs_assert(le64_to_cpu(dent->ch.sqnum) > ubifs_inode(dir)->creat_sqnum); in ubifs_finddir() 700 ubifs_assert(le64_to_cpu(dn->ch.sqnum) > ubifs_inode(inode)->creat_sqnum); in read_block()
|
D | debug.c | 135 ubifs_assert(len > 0); in dbg_snprintf_key() 278 ubifs_assert(!mutex_is_locked(&c->tnc_mutex)); in ubifs_dump_inode() 1190 ubifs_assert(!keys_cmp(c, &zbr1->key, &zbr2->key)); in dbg_check_key_order() 1515 ubifs_assert(mutex_is_locked(&c->tnc_mutex)); in dbg_check_tnc() 2079 ubifs_assert(zbr->len >= UBIFS_DATA_NODE_SZ); in check_leaf() 2109 ubifs_assert(zbr->len >= UBIFS_DENT_NODE_SZ); in check_leaf() 2504 ubifs_assert(dbg_is_tst_rcvry(c)); in power_cut_emulated()
|
D | scan.c | 172 ubifs_assert(offs % c->min_io_size == 0); in ubifs_end_scan()
|
D | master.c | 359 ubifs_assert(!c->ro_media && !c->ro_mount); in ubifs_write_master()
|