/fs/xfs/ |
D | xfs_trans_buf.c | 43 ASSERT(blip->bli_buf->b_map_count == nmaps); in xfs_trans_buf_item_match() 68 ASSERT(bp->b_transp == NULL); in _xfs_trans_bjoin() 77 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in _xfs_trans_bjoin() 78 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLF_CANCEL)); in _xfs_trans_bjoin() 79 ASSERT(!(bip->bli_flags & XFS_BLI_LOGGED)); in _xfs_trans_bjoin() 140 ASSERT(xfs_buf_islocked(bp)); in xfs_trans_get_buf_map() 146 ASSERT(bp->b_transp == tp); in xfs_trans_get_buf_map() 148 ASSERT(bip != NULL); in xfs_trans_get_buf_map() 149 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_get_buf_map() 160 ASSERT(!bp->b_error); in xfs_trans_get_buf_map() [all …]
|
D | xfs_buf_item.c | 108 ASSERT(nbits > 0); in xfs_buf_item_size_segment() 198 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_buf_item_size() 206 ASSERT(bip->__bli_format.blf_flags & XFS_BLF_CANCEL); in xfs_buf_item_size() 214 ASSERT(bip->bli_flags & XFS_BLI_LOGGED); in xfs_buf_item_size() 311 ASSERT(blfp->blf_flags & XFS_BLF_CANCEL); in xfs_buf_item_format_segment() 320 ASSERT(first_bit >= 0); in xfs_buf_item_format_segment() 323 ASSERT(nbits > 0); in xfs_buf_item_format_segment() 350 ASSERT(bp->b_addr == NULL); in xfs_buf_item_format_segment() 406 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_buf_item_format() 407 ASSERT((bip->bli_flags & XFS_BLI_LOGGED) || in xfs_buf_item_format() [all …]
|
D | xfs_qm.c | 159 ASSERT(atomic_read(&dqp->q_pincount) == 0); in xfs_qm_dqpurge() 160 ASSERT(xfs_is_shutdown(mp) || in xfs_qm_dqpurge() 173 ASSERT(!list_empty(&dqp->q_lru)); in xfs_qm_dqpurge() 221 ASSERT(mp->m_rootip); in xfs_qm_unmount_quotas() 257 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_qm_dqattach_one() 325 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_qm_dqattach_locked() 332 ASSERT(ip->i_udquot); in xfs_qm_dqattach_locked() 340 ASSERT(ip->i_gdquot); in xfs_qm_dqattach_locked() 348 ASSERT(ip->i_pdquot); in xfs_qm_dqattach_locked() 356 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_qm_dqattach_locked() [all …]
|
D | xfs_inode.c | 175 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock() 177 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_ilock() 179 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_ilock() 181 ASSERT((lock_flags & ~(XFS_LOCK_MASK | XFS_LOCK_SUBCLASS_MASK)) == 0); in xfs_ilock() 229 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock_nowait() 231 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_ilock_nowait() 233 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_ilock_nowait() 235 ASSERT((lock_flags & ~(XFS_LOCK_MASK | XFS_LOCK_SUBCLASS_MASK)) == 0); in xfs_ilock_nowait() 298 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_iunlock() 300 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_iunlock() [all …]
|
D | xfs_trans_dquot.c | 33 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_trans_dqjoin() 34 ASSERT(dqp->q_logitem.qli_dquot == dqp); in xfs_trans_dqjoin() 57 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_trans_log_dquot() 193 ASSERT(tp); in xfs_trans_mod_dquot() 194 ASSERT(XFS_IS_QUOTA_ON(tp->t_mountp)); in xfs_trans_mod_dquot() 207 ASSERT(qtrx); in xfs_trans_mod_dquot() 238 ASSERT(qtrx->qt_ino_res >= qtrx->qt_ino_res_used); in xfs_trans_mod_dquot() 252 ASSERT(qtrx->qt_rtblk_res >= qtrx->qt_rtblk_res_used); in xfs_trans_mod_dquot() 262 ASSERT(0); in xfs_trans_mod_dquot() 280 ASSERT(q[0].qt_dquot != NULL); in xfs_trans_dqlockedjoin() [all …]
|
D | xfs_dquot_item_recover.c | 43 ASSERT(type); in xlog_recover_dquot_ra_pass2() 48 ASSERT(dq_f); in xlog_recover_dquot_ra_pass2() 49 ASSERT(dq_f->qlf_len == 1); in xlog_recover_dquot_ra_pass2() 95 ASSERT(type); in xlog_recover_dquot_commit_pass2() 110 ASSERT(dq_f); in xlog_recover_dquot_commit_pass2() 117 ASSERT(dq_f->qlf_len == 1); in xlog_recover_dquot_commit_pass2() 132 ASSERT(bp); in xlog_recover_dquot_commit_pass2() 154 ASSERT(dq_f->qlf_size == 2); in xlog_recover_dquot_commit_pass2() 155 ASSERT(bp->b_mount == mp); in xlog_recover_dquot_commit_pass2() 181 ASSERT(qoff_f); in xlog_recover_quotaoff_commit_pass1()
|
D | xfs_trans.c | 110 ASSERT(tp->t_flags & XFS_TRANS_PERM_LOG_RES); in xfs_trans_dup() 111 ASSERT(tp->t_ticket != NULL); in xfs_trans_dup() 121 ASSERT(tp->t_blk_res >= tp->t_blk_res_used); in xfs_trans_dup() 180 ASSERT(tp->t_log_res == 0 || in xfs_trans_reserve() 182 ASSERT(tp->t_log_count == 0 || in xfs_trans_reserve() 189 ASSERT(tp->t_ticket == NULL); in xfs_trans_reserve() 190 ASSERT(!(tp->t_flags & XFS_TRANS_PERM_LOG_RES)); in xfs_trans_reserve() 194 ASSERT(resp->tr_logflags & XFS_TRANS_PERM_LOG_RES); in xfs_trans_reserve() 277 ASSERT(!(flags & XFS_TRANS_RES_FDBLKS) || in xfs_trans_alloc() 422 ASSERT(tp->t_rtx_res_used <= tp->t_rtx_res); in xfs_trans_mod_sb() [all …]
|
D | xfs_inode_item.c | 81 ASSERT(0); in xfs_inode_item_data_fork_size() 119 ASSERT(0); in xfs_inode_item_attr_fork_size() 169 ASSERT(xfs_iext_count(&ip->i_df) > 0); in xfs_inode_item_format_data_fork() 175 ASSERT(data_bytes <= ip->i_df.if_bytes); in xfs_inode_item_format_data_fork() 189 ASSERT(ip->i_df.if_broot != NULL); in xfs_inode_item_format_data_fork() 196 ASSERT(!(iip->ili_fields & in xfs_inode_item_format_data_fork() 212 ASSERT(ip->i_df.if_u1.if_data != NULL); in xfs_inode_item_format_data_fork() 213 ASSERT(ip->i_disk_size > 0); in xfs_inode_item_format_data_fork() 229 ASSERT(0); in xfs_inode_item_format_data_fork() 254 ASSERT(xfs_iext_count(ip->i_afp) == in xfs_inode_item_format_attr_fork() [all …]
|
D | xfs_dquot.c | 54 ASSERT(list_empty(&dqp->q_lru)); in xfs_qm_dqdestroy() 77 ASSERT(dq->q_id); in xfs_qm_adjust_dqlimits() 131 ASSERT(res->hardlimit == 0 || res->softlimit <= res->hardlimit); in xfs_qm_adjust_res_timer() 167 ASSERT(dq->q_id); in xfs_qm_adjust_dqtimers() 193 ASSERT(tp); in xfs_qm_init_dquot_blk() 194 ASSERT(xfs_buf_islocked(bp)); in xfs_qm_init_dquot_blk() 210 ASSERT(0); in xfs_qm_init_dquot_blk() 330 ASSERT(map.br_blockcount == XFS_DQUOT_CLUSTER_SIZE_FSB); in xfs_dquot_disk_alloc() 331 ASSERT(nmaps == 1); in xfs_dquot_disk_alloc() 332 ASSERT((map.br_startblock != DELAYSTARTBLOCK) && in xfs_dquot_disk_alloc() [all …]
|
D | xfs_buf.c | 102 ASSERT(bp->b_flags & XBF_ASYNC); in xfs_buf_ioacct_inc() 148 ASSERT(xfs_buf_islocked(bp)); in xfs_buf_stale() 173 ASSERT(atomic_read(&bp->b_hold) >= 1); in xfs_buf_stale() 182 ASSERT(bp->b_maps == NULL); in xfs_buf_get_maps() 278 ASSERT(bp->b_flags & _XBF_PAGES); in xfs_buf_free_pages() 302 ASSERT(list_empty(&bp->b_lru)); in xfs_buf_free() 410 ASSERT(bp->b_flags & _XBF_PAGES); in _xfs_buf_map_pages() 474 ASSERT(bp->b_flags & XBF_STALE); in _xfs_buf_obj_cmp() 544 ASSERT(!(BBTOB(cmap.bm_len) < btp->bt_meta_sectorsize)); in xfs_buf_find() 545 ASSERT(!(BBTOB(cmap.bm_bn) & (xfs_off_t)btp->bt_meta_sectormask)); in xfs_buf_find() [all …]
|
D | xfs_inode_item_recover.c | 84 ASSERT(in_f->ilf_fields & (XFS_ILOG_DOWNER|XFS_ILOG_AOWNER)); in xfs_recover_inode_owner_change() 91 ASSERT(dip->di_version >= 3); in xfs_recover_inode_owner_change() 98 ASSERT(in_f->ilf_fields & XFS_ILOG_DBROOT); in xfs_recover_inode_owner_change() 106 ASSERT(in_f->ilf_fields & XFS_ILOG_ABROOT); in xfs_recover_inode_owner_change() 241 ASSERT(in_f->ilf_fields & XFS_ILOG_CORE); in xlog_recover_inode_commit_pass2() 401 ASSERT(in_f->ilf_size <= 4); in xlog_recover_inode_commit_pass2() 402 ASSERT((in_f->ilf_size == 3) || (fields & XFS_ILOG_AFORK)); in xlog_recover_inode_commit_pass2() 403 ASSERT(!(fields & XFS_ILOG_DFORK) || in xlog_recover_inode_commit_pass2() 422 ASSERT((fields & XFS_ILOG_DFORK) == 0); in xlog_recover_inode_commit_pass2() 439 ASSERT(len == in_f->ilf_asize); in xlog_recover_inode_commit_pass2() [all …]
|
D | xfs_symlink.c | 46 ASSERT(xfs_isilocked(ip, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)); in xfs_readlink_bmap_ilocked() 89 ASSERT(pathlen == 0); in xfs_readlink_bmap_ilocked() 122 ASSERT(0); in xfs_readlink() 189 ASSERT(pathlen > 0); in xfs_symlink() 315 ASSERT(pathlen == 0); in xfs_symlink() 393 ASSERT(!xfs_need_iread_extents(&ip->i_df)); in xfs_inactive_symlink_rmt() 401 ASSERT(ip->i_df.if_nextents > 0 && ip->i_df.if_nextents <= 2); in xfs_inactive_symlink_rmt() 447 ASSERT(done); in xfs_inactive_symlink_rmt() 456 ASSERT(xfs_is_shutdown(mp)); in xfs_inactive_symlink_rmt() 465 ASSERT(ip->i_df.if_bytes == 0); in xfs_inactive_symlink_rmt() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_dir2_sf.c | 96 ASSERT(ino <= XFS_MAXINUMBER); in xfs_dir2_sf_put_ino() 121 ASSERT(ino <= XFS_MAXINUMBER); in xfs_dir2_sf_put_parent_ino() 154 ASSERT(ftype < XFS_DIR3_FT_MAX); in xfs_dir2_sf_put_ftype() 304 ASSERT(be64_to_cpu(dep->inumber) == dp->i_ino); in xfs_dir2_block_to_sf() 310 ASSERT(be64_to_cpu(dep->inumber) == in xfs_dir2_block_to_sf() 328 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf() 334 ASSERT(error != -ENOSPC); in xfs_dir2_block_to_sf() 344 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_block_to_sf() 379 ASSERT(xfs_dir2_sf_lookup(args) == -ENOENT); in xfs_dir2_sf_addname() 381 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_addname() [all …]
|
D | xfs_btree_staging.c | 49 ASSERT(0); in xfs_btree_fakeroot_dup_cursor() 67 ASSERT(0); in xfs_btree_fakeroot_alloc_block() 80 ASSERT(0); in xfs_btree_fakeroot_free_block() 92 ASSERT(cur->bc_flags & XFS_BTREE_STAGING); in xfs_btree_fakeroot_init_ptr_from_cur() 121 ASSERT(cur->bc_flags & XFS_BTREE_STAGING); in xfs_btree_afakeroot_set_root() 138 ASSERT(!(cur->bc_flags & XFS_BTREE_STAGING)); in xfs_btree_stage_afakeroot() 139 ASSERT(!(cur->bc_flags & XFS_BTREE_ROOT_IN_INODE)); in xfs_btree_stage_afakeroot() 140 ASSERT(cur->bc_tp == NULL); in xfs_btree_stage_afakeroot() 169 ASSERT(cur->bc_flags & XFS_BTREE_STAGING); in xfs_btree_commit_afakeroot() 170 ASSERT(cur->bc_tp == NULL); in xfs_btree_commit_afakeroot() [all …]
|
D | xfs_attr_leaf.c | 113 ASSERT(!to->count && !to->usedbytes); in xfs_attr3_leaf_firstused_from_disk() 114 ASSERT(geo->blksize > USHRT_MAX); in xfs_attr3_leaf_firstused_from_disk() 129 ASSERT(from->firstused != XFS_ATTR3_LEAF_NULLOFF); in xfs_attr3_leaf_firstused_to_disk() 138 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk() 158 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_attr3_leaf_hdr_from_disk() 200 ASSERT(from->magic == XFS_ATTR_LEAF_MAGIC || in xfs_attr3_leaf_hdr_to_disk() 660 ASSERT(ifp->if_bytes == 0); in xfs_attr_shortform_create() 738 ASSERT(ifp->if_format == XFS_DINODE_FMT_LOCAL); in xfs_attr_shortform_add() 741 ASSERT(0); in xfs_attr_shortform_add() 770 ASSERT(ip->i_afp->if_nextents == 0); in xfs_attr_fork_remove() [all …]
|
D | xfs_bmap.c | 272 ASSERT(be16_to_cpu(block->bb_level) > 0); in xfs_check_block() 280 ASSERT(be64_to_cpu(prevp->br_startoff) < in xfs_check_block() 350 ASSERT(level > 0); in xfs_bmap_check_leaf_extents() 355 ASSERT(bno != NULLFSBLOCK); in xfs_bmap_check_leaf_extents() 356 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount); in xfs_bmap_check_leaf_extents() 357 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks); in xfs_bmap_check_leaf_extents() 426 ASSERT(xfs_bmbt_disk_get_startoff(&last) + in xfs_bmap_check_leaf_extents() 432 ASSERT(xfs_bmbt_disk_get_startoff(ep) + in xfs_bmap_check_leaf_extents() 495 ASSERT(ret_nmap <= nmap); in xfs_bmap_validate_ret() 498 ASSERT(mval[i].br_blockcount > 0); in xfs_bmap_validate_ret() [all …]
|
D | xfs_inode_fork.c | 211 ASSERT(ifp->if_broot != NULL); in xfs_iformat_btree() 409 ASSERT(XFS_BMAP_BMDR_SPACE(ifp->if_broot) <= in xfs_iroot_realloc() 420 ASSERT((ifp->if_broot != NULL) && (ifp->if_broot_bytes > 0)); in xfs_iroot_realloc() 423 ASSERT(new_max >= 0); in xfs_iroot_realloc() 463 ASSERT(XFS_BMAP_BMDR_SPACE(ifp->if_broot) <= in xfs_iroot_realloc() 493 ASSERT(new_size >= 0); in xfs_idata_realloc() 494 ASSERT(new_size <= XFS_IFORK_SIZE(ip, whichfork)); in xfs_idata_realloc() 560 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL | XFS_ILOCK_SHARED)); in xfs_iextents_copy() 561 ASSERT(ifp->if_bytes > 0); in xfs_iextents_copy() 566 ASSERT(xfs_bmap_validate_extent(ip, whichfork, &rec) == NULL); in xfs_iextents_copy() [all …]
|
D | xfs_iext_tree.c | 57 ASSERT((irec->br_startoff & ~XFS_IEXT_STARTOFF_MASK) == 0); in xfs_iext_set() 58 ASSERT((irec->br_blockcount & ~XFS_IEXT_LENGTH_MASK) == 0); in xfs_iext_set() 59 ASSERT((irec->br_startblock & ~XFS_IEXT_STARTBLOCK_MASK) == 0); in xfs_iext_set() 169 ASSERT(node); in xfs_iext_find_first_leaf() 190 ASSERT(node); in xfs_iext_find_last_leaf() 231 ASSERT(cur->pos <= 0 || cur->pos >= RECS_PER_LEAF); in xfs_iext_next() 236 ASSERT(cur->pos >= 0); in xfs_iext_next() 237 ASSERT(cur->pos < xfs_iext_max_recs(ifp)); in xfs_iext_next() 253 ASSERT(cur->pos <= 0 || cur->pos >= RECS_PER_LEAF); in xfs_iext_prev() 258 ASSERT(cur->pos >= 0); in xfs_iext_prev() [all …]
|
D | xfs_alloc.c | 336 ASSERT(freelen >= wantlen); in xfs_alloc_compute_diff() 396 ASSERT(args->mod < args->prod); in xfs_alloc_fix_len() 398 ASSERT(rlen >= args->minlen); in xfs_alloc_fix_len() 399 ASSERT(rlen <= args->maxlen); in xfs_alloc_fix_len() 413 ASSERT(rlen >= args->minlen && rlen <= args->maxlen); in xfs_alloc_fix_len() 414 ASSERT(rlen % args->prod == args->mod); in xfs_alloc_fix_len() 415 ASSERT(args->pag->pagf_freeblks + args->pag->pagf_flcount >= in xfs_alloc_fix_len() 698 ASSERT(agno != NULLAGNUMBER); in xfs_alloc_read_agfl() 761 ASSERT(args->alignment == 1 || args->type != XFS_ALLOCTYPE_THIS_BNO); in xfs_alloc_cur_setup() 868 ASSERT(args->len >= args->minlen); in xfs_alloc_cur_check() [all …]
|
D | xfs_attr_remote.c | 135 ASSERT(len >= blksize); in __xfs_attr3_rmt_read_verify() 200 ASSERT(len >= blksize); in xfs_attr3_rmt_write_verify() 291 ASSERT(len >= blksize); in xfs_attr_rmtval_copyout() 339 ASSERT(len >= blksize); in xfs_attr_rmtval_copyin() 356 ASSERT(*valuelen - byte_cnt == 0); in xfs_attr_rmtval_copyin() 357 ASSERT(len == blksize); in xfs_attr_rmtval_copyin() 398 ASSERT(args->valuelen != 0); in xfs_attr_rmtval_get() 399 ASSERT(args->rmtvaluelen == args->valuelen); in xfs_attr_rmtval_get() 409 ASSERT(nmap >= 1); in xfs_attr_rmtval_get() 415 ASSERT((map[i].br_startblock != DELAYSTARTBLOCK) && in xfs_attr_rmtval_get() [all …]
|
D | xfs_trans_inode.c | 34 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_trans_ijoin() 39 ASSERT(iip->ili_lock_flags == 0); in xfs_trans_ijoin() 41 ASSERT(!xfs_iflags_test(ip, XFS_ISTALE)); in xfs_trans_ijoin() 63 ASSERT(tp); in xfs_trans_ichgtime() 64 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_trans_ichgtime() 101 ASSERT(iip); in xfs_trans_log_inode() 102 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_trans_log_inode() 103 ASSERT(!xfs_iflags_test(ip, XFS_ISTALE)); in xfs_trans_log_inode()
|
D | xfs_bmap_btree.c | 47 ASSERT(be16_to_cpu(rblock->bb_level) > 0); in xfs_bmdr_to_bmbt() 107 ASSERT(s->br_state == XFS_EXT_NORM || s->br_state == XFS_EXT_UNWRITTEN); in xfs_bmbt_disk_set_all() 108 ASSERT(!(s->br_startoff & xfs_mask64hi(64-BMBT_STARTOFF_BITLEN))); in xfs_bmbt_disk_set_all() 109 ASSERT(!(s->br_blockcount & xfs_mask64hi(64-BMBT_BLOCKCOUNT_BITLEN))); in xfs_bmbt_disk_set_all() 110 ASSERT(!(s->br_startblock & xfs_mask64hi(64-BMBT_STARTBLOCK_BITLEN))); in xfs_bmbt_disk_set_all() 140 ASSERT(rblock->bb_magic == cpu_to_be32(XFS_BMAP_CRC_MAGIC)); in xfs_bmbt_to_bmdr() 141 ASSERT(uuid_equal(&rblock->bb_u.l.bb_uuid, in xfs_bmbt_to_bmdr() 143 ASSERT(rblock->bb_u.l.bb_blkno == in xfs_bmbt_to_bmdr() 146 ASSERT(rblock->bb_magic == cpu_to_be32(XFS_BMAP_MAGIC)); in xfs_bmbt_to_bmdr() 147 ASSERT(rblock->bb_u.l.bb_leftsib == cpu_to_be64(NULLFSBLOCK)); in xfs_bmbt_to_bmdr() [all …]
|
D | xfs_da_btree.c | 141 ASSERT(to->magic == XFS_DA3_NODE_MAGIC); in xfs_da3_node_hdr_from_disk() 149 ASSERT(to->magic == XFS_DA_NODE_MAGIC); in xfs_da3_node_hdr_from_disk() 162 ASSERT(from->magic == XFS_DA3_NODE_MAGIC); in xfs_da3_node_hdr_to_disk() 169 ASSERT(from->magic == XFS_DA_NODE_MAGIC); in xfs_da3_node_hdr_to_disk() 436 ASSERT(level <= XFS_DA_NODE_MAXDEPTH); in xfs_da3_node_create() 492 ASSERT((max >= 0) && (max < XFS_DA_NODE_MAXDEPTH)); in xfs_da3_split() 493 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split() 573 ASSERT(state->extravalid == 0 || in xfs_da3_split() 579 ASSERT(state->path.active == 0); in xfs_da3_split() 690 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_root_split() [all …]
|
/fs/btrfs/ |
D | free-space-tree.c | 102 ASSERT(0); in search_free_space_info() 126 ASSERT(0); in btrfs_search_prev_slot() 131 ASSERT(0); in btrfs_search_prev_slot() 230 ASSERT(found_key.objectid == block_group->start); in convert_free_space_to_bitmaps() 231 ASSERT(found_key.offset == block_group->length); in convert_free_space_to_bitmaps() 237 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps() 238 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps() 239 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps() 251 ASSERT(0); in convert_free_space_to_bitmaps() 279 ASSERT(0); in convert_free_space_to_bitmaps() [all …]
|
D | subpage.c | 77 ASSERT(PageLocked(page)); in btrfs_attach_subpage() 99 ASSERT(subpage); in btrfs_detach_subpage() 145 ASSERT(PagePrivate(page) && page->mapping); in btrfs_page_inc_eb_refs() 160 ASSERT(PagePrivate(page) && page->mapping); in btrfs_page_dec_eb_refs() 164 ASSERT(atomic_read(&subpage->eb_refs)); in btrfs_page_dec_eb_refs() 172 ASSERT(PagePrivate(page) && page->private); in btrfs_subpage_assert() 173 ASSERT(IS_ALIGNED(start, fs_info->sectorsize) && in btrfs_subpage_assert() 180 ASSERT(page_offset(page) <= start && in btrfs_subpage_assert() 205 ASSERT(atomic_read(&subpage->readers) >= nbits); in btrfs_subpage_end_reader() 238 ASSERT(atomic_read(&subpage->readers) == 0); in btrfs_subpage_start_writer() [all …]
|