/linux-4.19.296/fs/ubifs/ |
D | budget.c | 441 ubifs_assert(c, req->new_page <= 1); in ubifs_budget_space() 442 ubifs_assert(c, req->dirtied_page <= 1); in ubifs_budget_space() 443 ubifs_assert(c, req->new_dent <= 1); in ubifs_budget_space() 444 ubifs_assert(c, req->mod_dent <= 1); in ubifs_budget_space() 445 ubifs_assert(c, req->new_ino <= 1); in ubifs_budget_space() 446 ubifs_assert(c, req->new_ino_d <= UBIFS_MAX_INO_DATA); in ubifs_budget_space() 447 ubifs_assert(c, req->dirtied_ino <= 4); in ubifs_budget_space() 448 ubifs_assert(c, req->dirtied_ino_d <= UBIFS_MAX_INO_DATA * 4); in ubifs_budget_space() 449 ubifs_assert(c, !(req->new_ino_d & 7)); in ubifs_budget_space() 450 ubifs_assert(c, !(req->dirtied_ino_d & 7)); in ubifs_budget_space() [all …]
|
D | gc.c | 86 ubifs_assert(c, gc_lnum != -1); in switch_gc_head() 134 ubifs_assert(c, key_type(c, &sa->key) == UBIFS_DATA_KEY); in data_nodes_cmp() 135 ubifs_assert(c, key_type(c, &sb->key) == UBIFS_DATA_KEY); in data_nodes_cmp() 136 ubifs_assert(c, sa->type == UBIFS_DATA_NODE); in data_nodes_cmp() 137 ubifs_assert(c, sb->type == UBIFS_DATA_NODE); in data_nodes_cmp() 178 ubifs_assert(c, key_type(c, &sa->key) != UBIFS_DATA_KEY && in nondata_nodes_cmp() 180 ubifs_assert(c, sa->type != UBIFS_DATA_NODE && in nondata_nodes_cmp() 192 ubifs_assert(c, key_type(c, &sa->key) == UBIFS_DENT_KEY || in nondata_nodes_cmp() 194 ubifs_assert(c, key_type(c, &sb->key) == UBIFS_DENT_KEY || in nondata_nodes_cmp() 196 ubifs_assert(c, sa->type == UBIFS_DENT_NODE || in nondata_nodes_cmp() [all …]
|
D | io.c | 122 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_leb_write() 142 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_leb_change() 162 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_leb_unmap() 181 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_leb_map() 244 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node() 245 ubifs_assert(c, !(offs & 7) && offs < c->leb_size); in ubifs_check_node() 334 ubifs_assert(c, pad >= 0); in ubifs_pad() 397 ubifs_assert(c, len >= UBIFS_CH_SZ); in ubifs_prepare_node() 430 ubifs_assert(c, len >= UBIFS_CH_SZ); in ubifs_prep_grp_node() 474 ubifs_assert(c, !hrtimer_active(&wbuf->timer)); in new_wbuf_timer_nolock() [all …]
|
D | lprops.c | 190 ubifs_assert(c, cpos >= b); in add_to_lpt_heap() 191 ubifs_assert(c, cpos < LPT_HEAP_SZ); in add_to_lpt_heap() 192 ubifs_assert(c, cpos < heap->cnt); in add_to_lpt_heap() 233 ubifs_assert(c, hpos >= 0 && hpos < heap->cnt); in remove_from_lpt_heap() 234 ubifs_assert(c, heap->arr[hpos] == lprops); in remove_from_lpt_heap() 299 ubifs_assert(c, 0); in ubifs_add_to_cat() 305 ubifs_assert(c, c->in_a_category_cnt <= c->main_lebs); in ubifs_add_to_cat() 327 ubifs_assert(c, c->freeable_cnt >= 0); in ubifs_remove_from_cat() 332 ubifs_assert(c, !list_empty(&lprops->list)); in ubifs_remove_from_cat() 336 ubifs_assert(c, 0); in ubifs_remove_from_cat() [all …]
|
D | find.c | 186 ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt); in scan_for_dirty() 191 ubifs_assert(c, lprops->lnum == data.lnum); in scan_for_dirty() 192 ubifs_assert(c, lprops->free + lprops->dirty >= min_space); in scan_for_dirty() 193 ubifs_assert(c, lprops->dirty >= c->dead_wm || in scan_for_dirty() 196 ubifs_assert(c, !(lprops->flags & LPROPS_TAKEN)); in scan_for_dirty() 197 ubifs_assert(c, !exclude_index || !(lprops->flags & LPROPS_INDEX)); in scan_for_dirty() 318 ubifs_assert(c, lp->free + lp->dirty >= c->dead_wm); in ubifs_find_dirty_leb() 329 ubifs_assert(c, lp->dirty >= c->dead_wm || in ubifs_find_dirty_leb() 465 ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt); in do_find_free_space() 470 ubifs_assert(c, lprops->lnum == data.lnum); in do_find_free_space() [all …]
|
D | tnc_misc.c | 48 ubifs_assert(c, zr); in ubifs_tnc_levelorder_next() 63 ubifs_assert(c, znode->level <= zr->level); in ubifs_tnc_levelorder_next() 90 ubifs_assert(c, znode); in ubifs_tnc_levelorder_next() 116 ubifs_assert(c, zn->level >= 0); in ubifs_tnc_levelorder_next() 145 ubifs_assert(c, end > beg); in ubifs_search_zbranch() 163 ubifs_assert(c, *n >= -1 && *n < znode->child_cnt); in ubifs_search_zbranch() 165 ubifs_assert(c, keys_cmp(c, key, &zbr[0].key) < 0); in ubifs_search_zbranch() 167 ubifs_assert(c, keys_cmp(c, key, &zbr[*n].key) > 0); in ubifs_search_zbranch() 169 ubifs_assert(c, keys_cmp(c, key, &zbr[*n + 1].key) < 0); in ubifs_search_zbranch() 211 ubifs_assert(c, znode); in ubifs_tnc_postorder_next() [all …]
|
D | tnc.c | 250 ubifs_assert(c, !ubifs_zn_obsolete(old_zn)); in replace_znode() 361 ubifs_assert(c, !zbr->leaf); in lnc_add() 362 ubifs_assert(c, zbr->len != 0); in lnc_add() 363 ubifs_assert(c, is_hash_key(c, &zbr->key)); in lnc_add() 395 ubifs_assert(c, !zbr->leaf); in lnc_add_directly() 396 ubifs_assert(c, zbr->len != 0); in lnc_add_directly() 438 ubifs_assert(c, is_hash_key(c, &zbr->key)); in tnc_read_hashed_node() 442 ubifs_assert(c, zbr->len != 0); in tnc_read_hashed_node() 761 ubifs_assert(c, *n == 0); in resolve_collision() 801 ubifs_assert(c, 0); in resolve_collision() [all …]
|
D | misc.h | 115 ubifs_assert(c, compr_type >= 0 && compr_type < UBIFS_COMPR_TYPES_CNT); in ubifs_compr_present() 128 ubifs_assert(c, compr_type >= 0 && compr_type < UBIFS_COMPR_TYPES_CNT); in ubifs_compr_name() 267 ubifs_assert(c, mutex_is_locked(&c->lp_mutex)); in ubifs_release_lprops() 268 ubifs_assert(c, c->lst.empty_lebs >= 0 && in ubifs_release_lprops()
|
D | key.h | 164 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init() 165 ubifs_assert(c, !nm->hash && !nm->minor_hash); in dent_key_init() 182 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init_hash() 201 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init_flash() 234 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in xent_key_init() 252 ubifs_assert(c, !(hash & ~UBIFS_S_KEY_HASH_MASK)); in xent_key_init_flash() 283 ubifs_assert(c, !(block & ~UBIFS_S_KEY_BLOCK_MASK)); in data_key_init()
|
D | journal.c | 114 ubifs_assert(c, !c->ro_media && !c->ro_mount); in reserve_space() 218 ubifs_assert(c, err < 0); in reserve_space() 249 ubifs_assert(c, jhead != GCHD); in write_node() 281 ubifs_assert(c, jhead != GCHD); in write_head() 552 ubifs_assert(c, mutex_is_locked(&host_ui->ui_mutex)); in ubifs_jnl_update() 716 ubifs_assert(c, len <= UBIFS_BLOCK_SIZE); in ubifs_jnl_write_data() 747 ubifs_assert(c, compr_len <= UBIFS_BLOCK_SIZE); in ubifs_jnl_write_data() 907 ubifs_assert(c, inode->i_nlink == 0); in ubifs_jnl_delete_inode() 962 ubifs_assert(c, ubifs_inode(fst_dir)->data_len == 0); in ubifs_jnl_xrename() 963 ubifs_assert(c, ubifs_inode(snd_dir)->data_len == 0); in ubifs_jnl_xrename() [all …]
|
D | file.c | 74 ubifs_assert(c, le64_to_cpu(dn->ch.sqnum) > in read_block() 123 ubifs_assert(c, !PageChecked(page)); in do_readpage() 124 ubifs_assert(c, !PagePrivate(page)); in do_readpage() 445 ubifs_assert(c, ubifs_inode(inode)->ui_size == inode->i_size); in ubifs_write_begin() 446 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_write_begin() 485 ubifs_assert(c, err == -ENOSPC); in ubifs_write_begin() 502 ubifs_assert(c, mutex_is_locked(&ui->ui_mutex)); in ubifs_write_begin() 599 ubifs_assert(c, mutex_is_locked(&ui->ui_mutex)); in ubifs_write_end() 652 ubifs_assert(c, le64_to_cpu(dn->ch.sqnum) > in populate_page() 771 ubifs_assert(c, bu->buf_len > 0); in ubifs_do_bulk_read() [all …]
|
D | orphan.c | 175 ubifs_assert(c, orphan->new); in ubifs_orphan_start_commit() 176 ubifs_assert(c, !orphan->cmt); in ubifs_orphan_start_commit() 247 ubifs_assert(c, c->ohead_offs == 0); in do_write_orph_node() 279 ubifs_assert(c, c->cmt_orphans > 0); in write_orph_node() 298 ubifs_assert(c, c->orph_buf); in write_orph_node() 305 ubifs_assert(c, orphan->cmt); in write_orph_node() 319 ubifs_assert(c, c->ohead_offs + len <= c->leb_size); in write_orph_node() 320 ubifs_assert(c, c->ohead_lnum >= c->orph_first); in write_orph_node() 321 ubifs_assert(c, c->ohead_lnum <= c->orph_last); in write_orph_node() 391 ubifs_assert(c, cnt == c->tot_orphans - c->new_orphans); in consolidate() [all …]
|
D | tnc_commit.c | 90 ubifs_assert(c, ubifs_zn_dirty(znode)); in make_idx_node() 91 ubifs_assert(c, ubifs_zn_cow(znode)); in make_idx_node() 118 ubifs_assert(c, (gap_start & 7) == 0); in fill_gap() 119 ubifs_assert(c, (gap_end & 7) == 0); in fill_gap() 120 ubifs_assert(c, gap_end >= gap_start); in fill_gap() 134 ubifs_assert(c, alen <= gap_remains); in fill_gap() 262 ubifs_assert(c, snod->type == UBIFS_IDX_NODE); in layout_leb_in_gaps() 376 ubifs_assert(c, p < c->lst.idx_lebs); in layout_in_gaps() 662 ubifs_assert(c, !ubifs_zn_cow(znode)); in get_znodes_to_commit() 675 ubifs_assert(c, cnt == atomic_long_read(&c->dirty_zn_cnt)); in get_znodes_to_commit() [all …]
|
D | xattr.c | 219 ubifs_assert(c, ui->data_len == inode->i_size); in change_xattr() 294 ubifs_assert(c, inode_is_locked(host)); in ubifs_xattr_set() 377 ubifs_assert(c, inode->i_size == ui->data_len); in ubifs_xattr_get() 378 ubifs_assert(c, ubifs_inode(host)->xattr_size > ui->data_len); in ubifs_xattr_get() 465 ubifs_assert(c, written <= size); in ubifs_listxattr() 478 ubifs_assert(c, ui->data_len == inode->i_size); in remove_xattr() 541 ubifs_assert(c, inode_is_locked(host)); in ubifs_xattr_remove() 564 ubifs_assert(c, inode->i_nlink == 1); in ubifs_xattr_remove()
|
D | replay.c | 226 ubifs_assert(c, rino->deletion); in inode_still_linked() 227 ubifs_assert(c, key_type(c, &rino->key) == UBIFS_INO_KEY); in inode_still_linked() 234 ubifs_assert(c, r->sqnum >= rino->sqnum); in inode_still_linked() 241 ubifs_assert(c, 0); in inode_still_linked() 323 ubifs_assert(c, ra->sqnum != rb->sqnum); in replay_entries_cmp() 710 ubifs_assert(c, ubifs_search_bud(c, lnum)); in replay_bud() 711 ubifs_assert(c, sleb->endpt - offs >= used); in replay_bud() 712 ubifs_assert(c, sleb->endpt % c->min_io_size == 0); in replay_bud() 748 ubifs_assert(c, b->sqnum > prev_sqnum); in replay_buds() 1109 ubifs_assert(c, c->bud_bytes <= c->max_bud_bytes || c->need_recovery); in ubifs_replay_journal()
|
D | crypto.c | 35 ubifs_assert(c, pad_len <= *out_len); in ubifs_encrypt() 66 ubifs_assert(c, dlen <= UBIFS_BLOCK_SIZE); in ubifs_decrypt()
|
D | dir.c | 241 ubifs_assert(c, fname_len(&nm) == 0); in ubifs_lookup() 242 ubifs_assert(c, fname_name(&nm) == NULL); in ubifs_lookup() 419 ubifs_assert(c, inode->i_op == &ubifs_file_inode_operations); in do_tmpfile() 436 ubifs_assert(c, ui->dirty); in do_tmpfile() 574 ubifs_assert(c, !file->private_data); in ubifs_readdir() 615 ubifs_assert(c, le64_to_cpu(dent->ch.sqnum) > in ubifs_readdir() 734 ubifs_assert(c, inode_is_locked(dir)); in ubifs_link() 735 ubifs_assert(c, inode_is_locked(inode)); in ubifs_link() 822 ubifs_assert(c, inode_is_locked(dir)); in ubifs_unlink() 823 ubifs_assert(c, inode_is_locked(inode)); in ubifs_unlink() [all …]
|
D | lpt.c | 239 ubifs_assert(c, nrbits > 0); in pack_bits() 240 ubifs_assert(c, nrbits <= 32); in pack_bits() 241 ubifs_assert(c, *pos >= 0); in pack_bits() 242 ubifs_assert(c, *pos < 8); in pack_bits() 243 ubifs_assert(c, (val >> nrbits) == 0 || nrbits == 32); in pack_bits() 293 ubifs_assert(c, nrbits > 0); in ubifs_unpack_bits() 294 ubifs_assert(c, nrbits <= 32); in ubifs_unpack_bits() 295 ubifs_assert(c, *pos >= 0); in ubifs_unpack_bits() 296 ubifs_assert(c, *pos < 8); in ubifs_unpack_bits() 342 ubifs_assert(c, (val >> nrbits) == 0 || nrbits - b == 32); in ubifs_unpack_bits() [all …]
|
D | log.c | 135 ubifs_assert(c, bud->lnum != b->lnum); in ubifs_add_bud() 148 ubifs_assert(c, c->replaying && c->ro_mount); in ubifs_add_bud() 192 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_add_bud_to_log() 247 ubifs_assert(c, c->lhead_lnum != c->ltail_lnum); in ubifs_add_bud_to_log() 304 ubifs_assert(c, list_empty(&c->old_buds)); in remove_buds() 412 ubifs_assert(c, c->lhead_lnum != c->ltail_lnum); in ubifs_log_start_commit()
|
D | lpt_commit.c | 44 ubifs_assert(c, nnode); in first_dirty_cnode() 78 ubifs_assert(c, cnode); in next_dirty_cnode() 117 ubifs_assert(c, !test_bit(COW_CNODE, &cnode->flags)); in get_cnodes_to_commit() 130 ubifs_assert(c, cnt == c->dirty_nn_cnt + c->dirty_pn_cnt); in get_cnodes_to_commit() 146 ubifs_assert(c, lnum >= c->lpt_first && lnum <= c->lpt_last); in upd_ltab() 242 ubifs_assert(c, lnum >= c->lpt_first && in layout_cnodes() 285 ubifs_assert(c, lnum >= c->lpt_first && in layout_cnodes() 305 ubifs_assert(c, lnum >= c->lpt_first && in layout_cnodes() 428 ubifs_assert(c, lnum >= c->lpt_first && in write_cnodes() 485 ubifs_assert(c, lnum >= c->lpt_first && in write_cnodes() [all …]
|
D | shrinker.c | 76 ubifs_assert(c, mutex_is_locked(&c->umount_mutex)); in shrink_tnc() 77 ubifs_assert(c, mutex_is_locked(&c->tnc_mutex)); in shrink_tnc()
|
D | super.c | 299 ubifs_assert(c, !ui->xattr); in ubifs_write_inode() 352 ubifs_assert(c, !atomic_read(&inode->i_count)); in ubifs_evict_inode() 390 ubifs_assert(c, mutex_is_locked(&ui->ui_mutex)); in ubifs_dirty_inode() 420 ubifs_assert(c, buf->f_bfree <= c->block_cnt); in ubifs_statfs() 1131 ubifs_assert(c, c->bulk_read == 1); in bu_init() 1162 ubifs_assert(c, c->dark_wm > 0); in check_free_space() 1424 ubifs_assert(c, c->lst.taken_empty_lebs > 0); in mount_ubifs() 1427 ubifs_assert(c, c->lst.taken_empty_lebs > 0); in mount_ubifs() 1638 ubifs_assert(c, c->tot_orphans == 0); in ubifs_remount_rw() 1754 ubifs_assert(c, !c->need_recovery); in ubifs_remount_ro() [all …]
|
D | sb.c | 577 ubifs_assert(c, !c->ro_media || c->ro_mount); in ubifs_read_superblock() 719 ubifs_assert(c, len >= 0); in fixup_leb() 720 ubifs_assert(c, len % c->min_io_size == 0); in fixup_leb() 721 ubifs_assert(c, len < c->leb_size); in fixup_leb() 831 ubifs_assert(c, c->space_fixup); in ubifs_fixup_free_space() 832 ubifs_assert(c, !c->ro_mount); in ubifs_fixup_free_space()
|
D | commit.c | 94 ubifs_assert(c, atomic_long_read(&c->dirty_zn_cnt) == 0); in nothing_to_commit() 95 ubifs_assert(c, c->dirty_pn_cnt == 0); in nothing_to_commit() 96 ubifs_assert(c, c->dirty_nn_cnt == 0); in nothing_to_commit() 116 ubifs_assert(c, !c->ro_media && !c->ro_mount); in do_commit()
|
D | recovery.c | 447 ubifs_assert(c, !(*offs & 7)); in clean_buf() 647 ubifs_assert(c, len >= 8); in ubifs_recover_leb() 969 ubifs_assert(c, !c->ro_mount || c->remounting_rw); in ubifs_recover_inl_heads() 1190 ubifs_assert(c, !(lp.flags & LPROPS_INDEX)); in ubifs_rcvry_gc_commit() 1191 ubifs_assert(c, lp.free + lp.dirty >= wbuf->offs); in ubifs_rcvry_gc_commit() 1219 ubifs_assert(c, err == LEB_RETAINED); in ubifs_rcvry_gc_commit() 1510 ubifs_assert(c, !e->inode); in ubifs_recover_size()
|