Home
last modified time | relevance | path

Searched refs:ASSERT (Results 1 – 25 of 279) sorted by relevance

12345678910>>...12

/Linux-v5.4/fs/xfs/
Dxfs_trans_buf.c43 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()
137 ASSERT(xfs_buf_islocked(bp)); in xfs_trans_get_buf_map()
143 ASSERT(bp->b_transp == tp); in xfs_trans_get_buf_map()
145 ASSERT(bip != NULL); in xfs_trans_get_buf_map()
146 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_get_buf_map()
157 ASSERT(!bp->b_error); in xfs_trans_get_buf_map()
[all …]
Dxfs_trans_dquot.c31 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_trans_dqjoin()
32 ASSERT(dqp->q_logitem.qli_dquot == dqp); in xfs_trans_dqjoin()
55 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_trans_log_dquot()
191 ASSERT(tp); in xfs_trans_mod_dquot()
192 ASSERT(XFS_IS_QUOTA_RUNNING(tp->t_mountp)); in xfs_trans_mod_dquot()
202 ASSERT(qtrx); in xfs_trans_mod_dquot()
239 ASSERT(qtrx->qt_ino_res >= qtrx->qt_ino_res_used); in xfs_trans_mod_dquot()
257 ASSERT(qtrx->qt_rtblk_res >= qtrx->qt_rtblk_res_used); in xfs_trans_mod_dquot()
267 ASSERT(0); in xfs_trans_mod_dquot()
284 ASSERT(q[0].qt_dquot != NULL); in xfs_trans_dqlockedjoin()
[all …]
Dxfs_qm.c155 ASSERT(atomic_read(&dqp->q_pincount) == 0); in xfs_qm_dqpurge()
156 ASSERT(XFS_FORCED_SHUTDOWN(mp) || in xfs_qm_dqpurge()
170 ASSERT(!list_empty(&dqp->q_lru)); in xfs_qm_dqpurge()
218 ASSERT(mp->m_rootip); in xfs_qm_unmount_quotas()
255 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 …]
Dxfs_buf_item.c127 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_buf_item_size()
135 ASSERT(bip->__bli_format.blf_flags & XFS_BLF_CANCEL); in xfs_buf_item_size()
143 ASSERT(bip->bli_flags & XFS_BLI_LOGGED); in xfs_buf_item_size()
243 ASSERT(blfp->blf_flags & XFS_BLF_CANCEL); in xfs_buf_item_format_segment()
306 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_buf_item_format()
307 ASSERT((bip->bli_flags & XFS_BLI_LOGGED) || in xfs_buf_item_format()
309 ASSERT((bip->bli_flags & XFS_BLI_STALE) || in xfs_buf_item_format()
312 ASSERT(!(bip->bli_flags & XFS_BLI_ORDERED) || in xfs_buf_item_format()
365 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_buf_item_pin()
366 ASSERT((bip->bli_flags & XFS_BLI_LOGGED) || in xfs_buf_item_pin()
[all …]
Dxfs_inode.c171 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock()
173 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_ilock()
175 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_ilock()
177 ASSERT((lock_flags & ~(XFS_LOCK_MASK | XFS_LOCK_SUBCLASS_MASK)) == 0); in xfs_ilock()
222 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock_nowait()
224 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_ilock_nowait()
226 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_ilock_nowait()
228 ASSERT((lock_flags & ~(XFS_LOCK_MASK | XFS_LOCK_SUBCLASS_MASK)) == 0); in xfs_ilock_nowait()
291 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_iunlock()
293 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_iunlock()
[all …]
Dxfs_inode_item.c66 ASSERT(0); in xfs_inode_item_data_fork_size()
104 ASSERT(0); in xfs_inode_item_attr_fork_size()
154 ASSERT(xfs_iext_count(&ip->i_df) > 0); in xfs_inode_item_format_data_fork()
160 ASSERT(data_bytes <= ip->i_df.if_bytes); in xfs_inode_item_format_data_fork()
174 ASSERT(ip->i_df.if_broot != NULL); in xfs_inode_item_format_data_fork()
181 ASSERT(!(iip->ili_fields & in xfs_inode_item_format_data_fork()
197 ASSERT(ip->i_df.if_u1.if_data != NULL); in xfs_inode_item_format_data_fork()
198 ASSERT(ip->i_d.di_size > 0); in xfs_inode_item_format_data_fork()
214 ASSERT(0); in xfs_inode_item_format_data_fork()
239 ASSERT(xfs_iext_count(ip->i_afp) == in xfs_inode_item_format_attr_fork()
[all …]
Dxfs_dquot.c53 ASSERT(list_empty(&dqp->q_lru)); in xfs_qm_dqdestroy()
77 ASSERT(d->d_id); in xfs_qm_adjust_dqlimits()
119 ASSERT(d->d_id); in xfs_qm_adjust_dqtimers()
123 ASSERT(be64_to_cpu(d->d_blk_softlimit) <= in xfs_qm_adjust_dqtimers()
126 ASSERT(be64_to_cpu(d->d_ino_softlimit) <= in xfs_qm_adjust_dqtimers()
129 ASSERT(be64_to_cpu(d->d_rtb_softlimit) <= in xfs_qm_adjust_dqtimers()
219 ASSERT(tp); in xfs_qm_init_dquot_blk()
220 ASSERT(xfs_buf_islocked(bp)); in xfs_qm_init_dquot_blk()
312 ASSERT(map.br_blockcount == XFS_DQUOT_CLUSTER_SIZE_FSB); in xfs_dquot_disk_alloc()
313 ASSERT(nmaps == 1); in xfs_dquot_disk_alloc()
[all …]
/Linux-v5.4/tools/testing/selftests/sync/
Dsync_fence.c38 ASSERT(valid, "Failure allocating timeline\n"); in test_fence_one_timeline_wait()
42 ASSERT(valid, "Failure allocating fence\n"); in test_fence_one_timeline_wait()
46 ASSERT(ret == 0, "Failure waiting on fence until timeout\n"); in test_fence_one_timeline_wait()
50 ASSERT(ret == 0, "Failure advancing timeline\n"); in test_fence_one_timeline_wait()
54 ASSERT(ret == 0, "Failure waiting on fence until timeout\n"); in test_fence_one_timeline_wait()
58 ASSERT(ret == 0, "Failure signaling the fence\n"); in test_fence_one_timeline_wait()
62 ASSERT(ret > 0, "Failure waiting on fence\n"); in test_fence_one_timeline_wait()
66 ASSERT(ret == 0, "Failure going further\n"); in test_fence_one_timeline_wait()
68 ASSERT(ret > 0, "Failure waiting ahead\n"); in test_fence_one_timeline_wait()
89 ASSERT(valid, "Failure allocating fences\n"); in test_fence_one_timeline_merge()
[all …]
Dsync_stress_consumer.c46 ASSERT(error == 0, "Error occurred on fence\n"); in busy_wait_on_fence()
74 ASSERT(valid, "Failure creating fence\n"); in mpsc_producer_thread()
82 ASSERT(sync_wait(fence, -1) > 0, in mpsc_producer_thread()
85 ASSERT(busy_wait_on_fence(fence) == 0, in mpsc_producer_thread()
97 ASSERT(sw_sync_timeline_inc(producer_timelines[id], 1) == 0, in mpsc_producer_thread()
126 ASSERT(valid, "Failure merging fences\n"); in mpcs_consumer_thread()
133 ASSERT(sync_wait(fence, -1) > 0, in mpcs_consumer_thread()
136 ASSERT(busy_wait_on_fence(fence) == 0, in mpcs_consumer_thread()
140 ASSERT(test_data_mpsc.counter == n * it, in mpcs_consumer_thread()
144 ASSERT(sw_sync_timeline_inc(consumer_timeline, 1) == 0, in mpcs_consumer_thread()
Dsync_wait.c50 ASSERT(valid, "Failure merging fence from various timelines\n"); in test_fence_multi_timeline_wait()
54 ASSERT(active == 3, "Fence signaled too early!\n"); in test_fence_multi_timeline_wait()
57 ASSERT(ret == 0, in test_fence_multi_timeline_wait()
63 ASSERT(active == 2 && signaled == 1, in test_fence_multi_timeline_wait()
69 ASSERT(active == 1 && signaled == 2, in test_fence_multi_timeline_wait()
75 ASSERT(active == 0 && signaled == 3, in test_fence_multi_timeline_wait()
80 ASSERT(ret > 0, "Failure waiting on signaled fence\n"); in test_fence_multi_timeline_wait()
Dsync_stress_parallelism.c51 ASSERT(valid, "Failure allocating fence\n"); in test_stress_two_threads_shared_timeline_thread()
55 ASSERT(ret > 0, "Problem occurred on prior thread\n"); in test_stress_two_threads_shared_timeline_thread()
61 ASSERT(test_data_two_threads.counter == i * 2 + thread_id, in test_stress_two_threads_shared_timeline_thread()
67 ASSERT(ret == 0, "Advancing timeline failed\n"); in test_stress_two_threads_shared_timeline_thread()
82 ASSERT(valid, "Failure allocating timeline\n"); in test_stress_two_threads_shared_timeline()
104 ASSERT(test_data_two_threads.counter == in test_stress_two_threads_shared_timeline()
Dsync_merge.c38 ASSERT(valid, "Failure allocating timeline\n"); in test_fence_merge_same_fence()
42 ASSERT(valid, "Failure allocating fence\n"); in test_fence_merge_same_fence()
46 ASSERT(valid, "Failure merging fence\n"); in test_fence_merge_same_fence()
48 ASSERT(sync_fence_count_with_status(merged, FENCE_STATUS_SIGNALED) == 0, in test_fence_merge_same_fence()
52 ASSERT(sync_fence_count_with_status(merged, FENCE_STATUS_SIGNALED) == 1, in test_fence_merge_same_fence()
Dsync_alloc.c38 ASSERT(valid, "Failure allocating timeline\n"); in test_alloc_timeline()
50 ASSERT(valid, "Failure allocating timeline\n"); in test_alloc_fence()
54 ASSERT(valid, "Failure allocating fence\n"); in test_alloc_fence()
66 ASSERT(timeline > 0, "Failure allocating timeline\n"); in test_alloc_fence_negative()
69 ASSERT(fence < 0, "Success allocating negative fence\n"); in test_alloc_fence_negative()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/basics/
Dfixpt31_32.c50 ASSERT(divisor); in complete_integer_division_u64()
84 ASSERT(res_value <= LONG_MAX); in dc_fixpt_from_fraction()
106 ASSERT(res_value <= LLONG_MAX - summand); in dc_fixpt_from_fraction()
139 ASSERT(res.value <= LONG_MAX); in dc_fixpt_mul()
145 ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value)); in dc_fixpt_mul()
151 ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value)); in dc_fixpt_mul()
160 ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value)); in dc_fixpt_mul()
184 ASSERT(res.value <= LONG_MAX); in dc_fixpt_sqr()
190 ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value)); in dc_fixpt_sqr()
194 ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value)); in dc_fixpt_sqr()
[all …]
/Linux-v5.4/fs/xfs/libxfs/
Dxfs_dir2_sf.c200 ASSERT(be64_to_cpu(dep->inumber) == dp->i_ino); in xfs_dir2_block_to_sf()
206 ASSERT(be64_to_cpu(dep->inumber) == in xfs_dir2_block_to_sf()
226 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf()
232 ASSERT(error != -ENOSPC); in xfs_dir2_block_to_sf()
242 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_block_to_sf()
277 ASSERT(xfs_dir2_sf_lookup(args) == -ENOENT); in xfs_dir2_sf_addname()
279 ASSERT(dp->i_df.if_flags & XFS_IFINLINE); in xfs_dir2_sf_addname()
284 ASSERT(XFS_FORCED_SHUTDOWN(dp->i_mount)); in xfs_dir2_sf_addname()
287 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_addname()
288 ASSERT(dp->i_df.if_u1.if_data != NULL); in xfs_dir2_sf_addname()
[all …]
Dxfs_inode_fork.c89 ASSERT(ip->i_cowfp == NULL); in xfs_iformat_fork()
96 ASSERT(ip->i_afp == NULL); in xfs_iformat_fork()
306 ASSERT(ifp->if_broot != NULL); in xfs_iformat_btree()
391 ASSERT(XFS_BMAP_BMDR_SPACE(ifp->if_broot) <= in xfs_iroot_realloc()
402 ASSERT((ifp->if_broot != NULL) && (ifp->if_broot_bytes > 0)); in xfs_iroot_realloc()
405 ASSERT(new_max >= 0); in xfs_iroot_realloc()
446 ASSERT(XFS_BMAP_BMDR_SPACE(ifp->if_broot) <= in xfs_iroot_realloc()
476 ASSERT(new_size >= 0); in xfs_idata_realloc()
477 ASSERT(new_size <= XFS_IFORK_SIZE(ip, whichfork)); in xfs_idata_realloc()
557 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL | XFS_ILOCK_SHARED)); in xfs_iextents_copy()
[all …]
Dxfs_attr_remote.c119 ASSERT(len >= blksize); in __xfs_attr3_rmt_read_verify()
184 ASSERT(len >= blksize); in xfs_attr3_rmt_write_verify()
275 ASSERT(len >= blksize); in xfs_attr_rmtval_copyout()
323 ASSERT(len >= blksize); in xfs_attr_rmtval_copyin()
340 ASSERT(*valuelen - byte_cnt == 0); in xfs_attr_rmtval_copyin()
341 ASSERT(len == blksize); in xfs_attr_rmtval_copyin()
382 ASSERT(!(args->flags & ATTR_KERNOVAL)); in xfs_attr_rmtval_get()
383 ASSERT(args->rmtvaluelen == args->valuelen); in xfs_attr_rmtval_get()
393 ASSERT(nmap >= 1); in xfs_attr_rmtval_get()
399 ASSERT((map[i].br_startblock != DELAYSTARTBLOCK) && in xfs_attr_rmtval_get()
[all …]
Dxfs_attr_leaf.c112 ASSERT(!to->count && !to->usedbytes); in xfs_attr3_leaf_firstused_from_disk()
113 ASSERT(geo->blksize > USHRT_MAX); in xfs_attr3_leaf_firstused_from_disk()
128 ASSERT(from->firstused != XFS_ATTR3_LEAF_NULLOFF); in xfs_attr3_leaf_firstused_to_disk()
137 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk()
157 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_attr3_leaf_hdr_from_disk()
199 ASSERT(from->magic == XFS_ATTR_LEAF_MAGIC || in xfs_attr3_leaf_hdr_to_disk()
574 ASSERT(dp != NULL); in xfs_attr_shortform_create()
576 ASSERT(ifp != NULL); in xfs_attr_shortform_create()
577 ASSERT(ifp->if_bytes == 0); in xfs_attr_shortform_create()
583 ASSERT(ifp->if_flags & XFS_IFINLINE); in xfs_attr_shortform_create()
[all …]
Dxfs_bmap.c202 ASSERT(offset < XFS_LITINO(mp, ip->i_d.di_version)); in xfs_default_attroffset()
268 ASSERT(be16_to_cpu(block->bb_level) > 0); in xfs_check_block()
276 ASSERT(be64_to_cpu(prevp->br_startoff) < in xfs_check_block()
349 ASSERT(level > 0); in xfs_bmap_check_leaf_extents()
354 ASSERT(bno != NULLFSBLOCK); in xfs_bmap_check_leaf_extents()
355 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount); in xfs_bmap_check_leaf_extents()
356 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks); in xfs_bmap_check_leaf_extents()
423 ASSERT(xfs_bmbt_disk_get_startoff(&last) + in xfs_bmap_check_leaf_extents()
429 ASSERT(xfs_bmbt_disk_get_startoff(ep) + in xfs_bmap_check_leaf_extents()
492 ASSERT(ret_nmap <= nmap); in xfs_bmap_validate_ret()
[all …]
Dxfs_trans_inode.c32 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_trans_ijoin()
37 ASSERT(iip->ili_lock_flags == 0); in xfs_trans_ijoin()
60 ASSERT(tp); in xfs_trans_ichgtime()
61 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_trans_ichgtime()
92 ASSERT(ip->i_itemp != NULL); in xfs_trans_log_inode()
93 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_trans_log_inode()
Dxfs_iext_tree.c57 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 …]
Dxfs_alloc.c318 ASSERT(freelen >= wantlen); in xfs_alloc_compute_diff()
378 ASSERT(args->mod < args->prod); in xfs_alloc_fix_len()
380 ASSERT(rlen >= args->minlen); in xfs_alloc_fix_len()
381 ASSERT(rlen <= args->maxlen); in xfs_alloc_fix_len()
395 ASSERT(rlen >= args->minlen && rlen <= args->maxlen); in xfs_alloc_fix_len()
396 ASSERT(rlen % args->prod == args->mod); in xfs_alloc_fix_len()
397 ASSERT(args->pag->pagf_freeblks + args->pag->pagf_flcount >= in xfs_alloc_fix_len()
661 ASSERT(agno != NULLAGNUMBER); in xfs_alloc_read_agfl()
813 ASSERT(args->minlen > 0); in xfs_alloc_ag_vextent()
814 ASSERT(args->maxlen > 0); in xfs_alloc_ag_vextent()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/calcs/
Dbw_fixed.c52 ASSERT(value < BW_FIXED_MAX_I32 && value > BW_FIXED_MIN_I32); in bw_int_to_fixed_nonconst()
69 ASSERT(denominator != 0); in bw_frc_to_fixed()
75 ASSERT(res_value <= BW_FIXED_MAX_I32); in bw_frc_to_fixed()
99 ASSERT(res_value <= MAX_I64 - summand); in bw_frc_to_fixed()
120 ASSERT(abs_i64(result.value) <= abs_i64(arg.value)); in bw_floor2()
162 ASSERT(res.value <= BW_FIXED_MAX_I32); in bw_mul()
168 ASSERT(tmp <= (uint64_t)(MAX_I64 - res.value)); in bw_mul()
174 ASSERT(tmp <= (uint64_t)(MAX_I64 - res.value)); in bw_mul()
183 ASSERT(tmp <= (uint64_t)(MAX_I64 - res.value)); in bw_mul()
/Linux-v5.4/fs/btrfs/
Dfree-space-tree.c99 ASSERT(0); in search_free_space_info()
123 ASSERT(0); in btrfs_search_prev_slot()
128 ASSERT(0); in btrfs_search_prev_slot()
227 ASSERT(found_key.objectid == block_group->key.objectid); in convert_free_space_to_bitmaps()
228 ASSERT(found_key.offset == block_group->key.offset); in convert_free_space_to_bitmaps()
234 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps()
235 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps()
236 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps()
248 ASSERT(0); in convert_free_space_to_bitmaps()
276 ASSERT(0); in convert_free_space_to_bitmaps()
[all …]
/Linux-v5.4/arch/arm/kernel/
Dvmlinux-xip.lds.S164 ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support")
165 ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")
172 ASSERT(__hyp_idmap_text_end - (__hyp_idmap_text_start & PAGE_MASK) <= PAGE_SIZE,
180 ASSERT((_end - __bss_start) >= 12288, ".bss too small for CONFIG_XIP_DEFLATED_DATA")
197 ASSERT(!(_xiprom & (SZ_1M - 1)), "XIP start address may cause MPU programming issues")
198 ASSERT(!(_exiprom & (SZ_128K - 1)), "XIP end address may cause MPU programming issues")

12345678910>>...12