/openbmc/linux/fs/ubifs/ |
H A D | budget.c | 426 ubifs_assert(c, req->new_page <= 1); in ubifs_budget_space() 427 ubifs_assert(c, req->dirtied_page <= 1); in ubifs_budget_space() 428 ubifs_assert(c, req->new_dent <= 1); in ubifs_budget_space() 429 ubifs_assert(c, req->mod_dent <= 1); in ubifs_budget_space() 430 ubifs_assert(c, req->new_ino <= 1); in ubifs_budget_space() 431 ubifs_assert(c, req->new_ino_d <= UBIFS_MAX_INO_DATA); in ubifs_budget_space() 432 ubifs_assert(c, req->dirtied_ino <= 4); in ubifs_budget_space() 433 ubifs_assert(c, req->dirtied_ino_d <= UBIFS_MAX_INO_DATA * 4); in ubifs_budget_space() 434 ubifs_assert(c, !(req->new_ino_d & 7)); in ubifs_budget_space() 435 ubifs_assert(c, !(req->dirtied_ino_d & 7)); in ubifs_budget_space() [all …]
|
H A D | io.c | 110 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_leb_write() 130 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_leb_change() 150 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_leb_unmap() 169 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_leb_map() 251 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node() 252 ubifs_assert(c, !(offs & 7) && offs < c->leb_size); in ubifs_check_node() 332 ubifs_assert(c, pad >= 0); in ubifs_pad() 383 ubifs_assert(c, len >= UBIFS_CH_SZ); in ubifs_init_node() 476 ubifs_assert(c, len >= UBIFS_CH_SZ); in ubifs_prep_grp_node() 520 ubifs_assert(c, !hrtimer_active(&wbuf->timer)); in new_wbuf_timer_nolock() [all …]
|
H A D | gc.c | 70 ubifs_assert(c, gc_lnum != -1); in switch_gc_head() 119 ubifs_assert(c, key_type(c, &sa->key) == UBIFS_DATA_KEY); in data_nodes_cmp() 120 ubifs_assert(c, key_type(c, &sb->key) == UBIFS_DATA_KEY); in data_nodes_cmp() 121 ubifs_assert(c, sa->type == UBIFS_DATA_NODE); in data_nodes_cmp() 122 ubifs_assert(c, sb->type == UBIFS_DATA_NODE); in data_nodes_cmp() 163 ubifs_assert(c, key_type(c, &sa->key) != UBIFS_DATA_KEY && in nondata_nodes_cmp() 165 ubifs_assert(c, sa->type != UBIFS_DATA_NODE && in nondata_nodes_cmp() 177 ubifs_assert(c, key_type(c, &sa->key) == UBIFS_DENT_KEY || in nondata_nodes_cmp() 179 ubifs_assert(c, key_type(c, &sb->key) == UBIFS_DENT_KEY || in nondata_nodes_cmp() 181 ubifs_assert(c, sa->type == UBIFS_DENT_NODE || in nondata_nodes_cmp() [all …]
|
H A D | lprops.c | 178 ubifs_assert(c, cpos >= b); in add_to_lpt_heap() 179 ubifs_assert(c, cpos < LPT_HEAP_SZ); in add_to_lpt_heap() 180 ubifs_assert(c, cpos < heap->cnt); in add_to_lpt_heap() 221 ubifs_assert(c, hpos >= 0 && hpos < heap->cnt); in remove_from_lpt_heap() 222 ubifs_assert(c, heap->arr[hpos] == lprops); in remove_from_lpt_heap() 287 ubifs_assert(c, 0); in ubifs_add_to_cat() 293 ubifs_assert(c, c->in_a_category_cnt <= c->main_lebs); in ubifs_add_to_cat() 315 ubifs_assert(c, c->freeable_cnt >= 0); in ubifs_remove_from_cat() 320 ubifs_assert(c, !list_empty(&lprops->list)); in ubifs_remove_from_cat() 324 ubifs_assert(c, 0); in ubifs_remove_from_cat() [all …]
|
H A D | find.c | 174 ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt); in scan_for_dirty() 179 ubifs_assert(c, lprops->lnum == data.lnum); in scan_for_dirty() 180 ubifs_assert(c, lprops->free + lprops->dirty >= min_space); in scan_for_dirty() 181 ubifs_assert(c, lprops->dirty >= c->dead_wm || in scan_for_dirty() 184 ubifs_assert(c, !(lprops->flags & LPROPS_TAKEN)); in scan_for_dirty() 185 ubifs_assert(c, !exclude_index || !(lprops->flags & LPROPS_INDEX)); in scan_for_dirty() 306 ubifs_assert(c, lp->free + lp->dirty >= c->dead_wm); in ubifs_find_dirty_leb() 317 ubifs_assert(c, lp->dirty >= c->dead_wm || in ubifs_find_dirty_leb() 453 ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt); in do_find_free_space() 458 ubifs_assert(c, lprops->lnum == data.lnum); in do_find_free_space() [all …]
|
H A D | tnc_misc.c | 36 ubifs_assert(c, zr); in ubifs_tnc_levelorder_next() 51 ubifs_assert(c, znode->level <= zr->level); in ubifs_tnc_levelorder_next() 78 ubifs_assert(c, znode); in ubifs_tnc_levelorder_next() 104 ubifs_assert(c, zn->level >= 0); in ubifs_tnc_levelorder_next() 133 ubifs_assert(c, end > beg); in ubifs_search_zbranch() 151 ubifs_assert(c, *n >= -1 && *n < znode->child_cnt); in ubifs_search_zbranch() 153 ubifs_assert(c, keys_cmp(c, key, &zbr[0].key) < 0); in ubifs_search_zbranch() 155 ubifs_assert(c, keys_cmp(c, key, &zbr[*n].key) > 0); in ubifs_search_zbranch() 157 ubifs_assert(c, keys_cmp(c, key, &zbr[*n + 1].key) < 0); in ubifs_search_zbranch() 199 ubifs_assert(c, znode); in ubifs_tnc_postorder_next() [all …]
|
H A D | misc.h | 103 ubifs_assert(c, compr_type >= 0 && compr_type < UBIFS_COMPR_TYPES_CNT); in ubifs_compr_present() 116 ubifs_assert(c, compr_type >= 0 && compr_type < UBIFS_COMPR_TYPES_CNT); in ubifs_compr_name() 256 ubifs_assert(c, mutex_is_locked(&c->lp_mutex)); in ubifs_release_lprops() 257 ubifs_assert(c, c->lst.empty_lebs >= 0 && in ubifs_release_lprops() 283 ubifs_assert(c, max_xattrs < c->max_orphans); in ubifs_xattr_max_cnt()
|
H A D | tnc.c | 239 ubifs_assert(c, !ubifs_zn_obsolete(old_zn)); in replace_znode() 350 ubifs_assert(c, !zbr->leaf); in lnc_add() 351 ubifs_assert(c, zbr->len != 0); in lnc_add() 352 ubifs_assert(c, is_hash_key(c, &zbr->key)); in lnc_add() 384 ubifs_assert(c, !zbr->leaf); in lnc_add_directly() 385 ubifs_assert(c, zbr->len != 0); in lnc_add_directly() 426 ubifs_assert(c, is_hash_key(c, &zbr->key)); in tnc_read_hashed_node() 430 ubifs_assert(c, zbr->len != 0); in tnc_read_hashed_node() 754 ubifs_assert(c, *n == 0); in resolve_collision() 794 ubifs_assert(c, 0); in resolve_collision() [all …]
|
H A D | journal.c | 108 ubifs_assert(c, !c->ro_media && !c->ro_mount); in reserve_space() 212 ubifs_assert(c, err < 0); in reserve_space() 235 ubifs_assert(c, len >= auth_node_size); in ubifs_hash_nodes() 240 ubifs_assert(c, len > nodelen); in ubifs_hash_nodes() 241 ubifs_assert(c, ch->magic == cpu_to_le32(UBIFS_NODE_MAGIC)); in ubifs_hash_nodes() 274 ubifs_assert(c, jhead != GCHD); in write_head() 554 ubifs_assert(c, mutex_is_locked(&host_ui->ui_mutex)); in ubifs_jnl_update() 736 ubifs_assert(c, len <= UBIFS_BLOCK_SIZE); in ubifs_jnl_write_data() 769 ubifs_assert(c, compr_len <= UBIFS_BLOCK_SIZE); in ubifs_jnl_write_data() 915 ubifs_assert(c, ubifs_inode(xino)->xattr); in ubifs_jnl_write_inode() [all …]
|
H A D | tnc_commit.c | 83 ubifs_assert(c, ubifs_zn_dirty(znode)); in make_idx_node() 84 ubifs_assert(c, ubifs_zn_cow(znode)); in make_idx_node() 111 ubifs_assert(c, (gap_start & 7) == 0); in fill_gap() 112 ubifs_assert(c, (gap_end & 7) == 0); in fill_gap() 113 ubifs_assert(c, gap_end >= gap_start); in fill_gap() 127 ubifs_assert(c, alen <= gap_remains); in fill_gap() 255 ubifs_assert(c, snod->type == UBIFS_IDX_NODE); in layout_leb_in_gaps() 369 ubifs_assert(c, p < c->lst.idx_lebs); in layout_in_gaps() 655 ubifs_assert(c, !ubifs_zn_cow(znode)); in get_znodes_to_commit() 660 ubifs_assert(c, !znode->parent); in get_znodes_to_commit() [all …]
|
H A D | file.c | 62 ubifs_assert(c, le64_to_cpu(dn->ch.sqnum) > in read_block() 111 ubifs_assert(c, !PageChecked(page)); in do_readpage() 112 ubifs_assert(c, !PagePrivate(page)); in do_readpage() 429 ubifs_assert(c, ubifs_inode(inode)->ui_size == inode->i_size); in ubifs_write_begin() 430 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_write_begin() 466 ubifs_assert(c, err == -ENOSPC); in ubifs_write_begin() 481 ubifs_assert(c, mutex_is_locked(&ui->ui_mutex)); in ubifs_write_begin() 581 ubifs_assert(c, mutex_is_locked(&ui->ui_mutex)); in ubifs_write_end() 634 ubifs_assert(c, le64_to_cpu(dn->ch.sqnum) > in populate_page() 753 ubifs_assert(c, bu->buf_len > 0); in ubifs_do_bulk_read() [all …]
|
H A D | key.h | 152 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init() 169 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init_hash() 188 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init_flash() 221 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in xent_key_init() 239 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in xent_key_init_flash() 270 ubifs_assert(c, !(block & ~UBIFS_S_KEY_BLOCK_MASK)); in data_key_init()
|
H A D | orphan.c | 245 ubifs_assert(c, orphan->new); in ubifs_orphan_start_commit() 246 ubifs_assert(c, !orphan->cmt); in ubifs_orphan_start_commit() 317 ubifs_assert(c, c->ohead_offs == 0); in do_write_orph_node() 349 ubifs_assert(c, c->cmt_orphans > 0); in write_orph_node() 368 ubifs_assert(c, c->orph_buf); in write_orph_node() 375 ubifs_assert(c, orphan->cmt); in write_orph_node() 389 ubifs_assert(c, c->ohead_offs + len <= c->leb_size); in write_orph_node() 390 ubifs_assert(c, c->ohead_lnum >= c->orph_first); in write_orph_node() 391 ubifs_assert(c, c->ohead_lnum <= c->orph_last); in write_orph_node() 461 ubifs_assert(c, cnt == c->tot_orphans - c->new_orphans); in consolidate() [all …]
|
H A D | xattr.c | 201 ubifs_assert(c, ui->data_len == inode->i_size); in change_xattr() 274 ubifs_assert(c, inode_is_locked(host)); in ubifs_xattr_set() 360 ubifs_assert(c, inode->i_size == ui->data_len); in ubifs_xattr_get() 361 ubifs_assert(c, ubifs_inode(host)->xattr_size > ui->data_len); in ubifs_xattr_get() 453 ubifs_assert(c, written <= size); in ubifs_listxattr() 470 ubifs_assert(c, ui->data_len == inode->i_size); in remove_xattr() 540 ubifs_assert(c, ubifs_inode(xino)->xattr); in ubifs_purge_xattrs() 604 ubifs_assert(c, inode_is_locked(host)); in ubifs_xattr_remove() 628 ubifs_assert(c, inode->i_nlink == 1); in ubifs_xattr_remove()
|
H A D | log.c | 123 ubifs_assert(c, bud->lnum != b->lnum); in ubifs_add_bud() 136 ubifs_assert(c, c->replaying && c->ro_mount); in ubifs_add_bud() 180 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_add_bud_to_log() 236 ubifs_assert(c, c->lhead_lnum != c->ltail_lnum); in ubifs_add_bud_to_log() 301 ubifs_assert(c, list_empty(&c->old_buds)); in remove_buds() 423 ubifs_assert(c, c->lhead_lnum != c->ltail_lnum); in ubifs_log_start_commit() 441 ubifs_assert(c, c->lhead_offs < c->leb_size); in ubifs_log_start_commit()
|
/openbmc/u-boot/fs/ubifs/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H 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()
|
H A 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 …]
|
H 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()
|
H A 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 …]
|