Home
last modified time | relevance | path

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

12345678910

/Linux-v4.19/fs/xfs/
Dxfs_trans_buf.c45 ASSERT(blip->bli_buf->b_map_count == nmaps); in xfs_trans_buf_item_match()
70 ASSERT(bp->b_transp == NULL); in _xfs_trans_bjoin()
79 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in _xfs_trans_bjoin()
80 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLF_CANCEL)); in _xfs_trans_bjoin()
81 ASSERT(!(bip->bli_flags & XFS_BLI_LOGGED)); in _xfs_trans_bjoin()
139 ASSERT(xfs_buf_islocked(bp)); in xfs_trans_get_buf_map()
145 ASSERT(bp->b_transp == tp); in xfs_trans_get_buf_map()
147 ASSERT(bip != NULL); in xfs_trans_get_buf_map()
148 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_get_buf_map()
159 ASSERT(!bp->b_error); in xfs_trans_get_buf_map()
[all …]
Dxfs_trans_dquot.c32 ASSERT(dqp->q_transp != tp); in xfs_trans_dqjoin()
33 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_trans_dqjoin()
34 ASSERT(dqp->q_logitem.qli_dquot == dqp); in xfs_trans_dqjoin()
64 ASSERT(dqp->q_transp == tp); in xfs_trans_log_dquot()
65 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_trans_log_dquot()
201 ASSERT(tp); in xfs_trans_mod_dquot()
202 ASSERT(XFS_IS_QUOTA_RUNNING(tp->t_mountp)); in xfs_trans_mod_dquot()
212 ASSERT(qtrx); in xfs_trans_mod_dquot()
249 ASSERT(qtrx->qt_ino_res >= qtrx->qt_ino_res_used); in xfs_trans_mod_dquot()
267 ASSERT(qtrx->qt_rtblk_res >= qtrx->qt_rtblk_res_used); in xfs_trans_mod_dquot()
[all …]
Dxfs_inode.c177 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock()
179 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_ilock()
181 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_ilock()
183 ASSERT((lock_flags & ~(XFS_LOCK_MASK | XFS_LOCK_SUBCLASS_MASK)) == 0); in xfs_ilock()
228 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock_nowait()
230 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_ilock_nowait()
232 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_ilock_nowait()
234 ASSERT((lock_flags & ~(XFS_LOCK_MASK | XFS_LOCK_SUBCLASS_MASK)) == 0); in xfs_ilock_nowait()
297 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_iunlock()
299 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_iunlock()
[all …]
Dxfs_qm.c159 ASSERT(atomic_read(&dqp->q_pincount) == 0); in xfs_qm_dqpurge()
160 ASSERT(XFS_FORCED_SHUTDOWN(mp) || in xfs_qm_dqpurge()
174 ASSERT(!list_empty(&dqp->q_lru)); in xfs_qm_dqpurge()
222 ASSERT(mp->m_rootip); in xfs_qm_unmount_quotas()
259 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_qm_dqattach_one()
329 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_qm_dqattach_locked()
336 ASSERT(ip->i_udquot); in xfs_qm_dqattach_locked()
344 ASSERT(ip->i_gdquot); in xfs_qm_dqattach_locked()
352 ASSERT(ip->i_pdquot); in xfs_qm_dqattach_locked()
360 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_qm_dqattach_locked()
[all …]
Dxfs_buf_item.c129 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_buf_item_size()
137 ASSERT(bip->__bli_format.blf_flags & XFS_BLF_CANCEL); in xfs_buf_item_size()
145 ASSERT(bip->bli_flags & XFS_BLI_LOGGED); in xfs_buf_item_size()
245 ASSERT(blfp->blf_flags & XFS_BLF_CANCEL); in xfs_buf_item_format_segment()
308 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_buf_item_format()
309 ASSERT((bip->bli_flags & XFS_BLI_LOGGED) || in xfs_buf_item_format()
311 ASSERT((bip->bli_flags & XFS_BLI_STALE) || in xfs_buf_item_format()
314 ASSERT(!(bip->bli_flags & XFS_BLI_ORDERED) || in xfs_buf_item_format()
367 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_buf_item_pin()
368 ASSERT((bip->bli_flags & XFS_BLI_LOGGED) || in xfs_buf_item_pin()
[all …]
Dxfs_trans_inode.c35 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_trans_ijoin()
40 ASSERT(iip->ili_lock_flags == 0); in xfs_trans_ijoin()
63 ASSERT(tp); in xfs_trans_ichgtime()
64 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_trans_ichgtime()
91 ASSERT(ip->i_itemp != NULL); in xfs_trans_log_inode()
92 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_trans_log_inode()
Dxfs_trans_extfree.c35 ASSERT(tp != NULL); in xfs_trans_get_efd()
36 ASSERT(nextents > 0); in xfs_trans_get_efd()
39 ASSERT(efdp != NULL); in xfs_trans_get_efd()
84 ASSERT(next_extent < efdp->efd_format.efd_nextents); in xfs_trans_free_extent()
118 ASSERT(tp != NULL); in xfs_extent_free_create_intent()
119 ASSERT(count > 0); in xfs_extent_free_create_intent()
122 ASSERT(efip != NULL); in xfs_extent_free_create_intent()
154 ASSERT(next_extent < efip->efi_format.efi_nextents); in xfs_extent_free_log_item()
243 ASSERT(free->xefi_blockcount == 1); in xfs_agfl_free_finish_item()
265 ASSERT(next_extent < efdp->efd_format.efd_nextents); in xfs_agfl_free_finish_item()
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.c57 ASSERT(list_empty(&dqp->q_lru)); in xfs_qm_dqdestroy()
81 ASSERT(d->d_id); in xfs_qm_adjust_dqlimits()
123 ASSERT(d->d_id); in xfs_qm_adjust_dqtimers()
127 ASSERT(be64_to_cpu(d->d_blk_softlimit) <= in xfs_qm_adjust_dqtimers()
130 ASSERT(be64_to_cpu(d->d_ino_softlimit) <= in xfs_qm_adjust_dqtimers()
133 ASSERT(be64_to_cpu(d->d_rtb_softlimit) <= in xfs_qm_adjust_dqtimers()
223 ASSERT(tp); in xfs_qm_init_dquot_blk()
224 ASSERT(xfs_buf_islocked(bp)); in xfs_qm_init_dquot_blk()
315 ASSERT(map.br_blockcount == XFS_DQUOT_CLUSTER_SIZE_FSB); in xfs_dquot_disk_alloc()
316 ASSERT(nmaps == 1); in xfs_dquot_disk_alloc()
[all …]
/Linux-v4.19/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-v4.19/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-v4.19/fs/xfs/libxfs/
Dxfs_dir2_sf.c203 ASSERT(be64_to_cpu(dep->inumber) == dp->i_ino); in xfs_dir2_block_to_sf()
209 ASSERT(be64_to_cpu(dep->inumber) == in xfs_dir2_block_to_sf()
229 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf()
235 ASSERT(error != -ENOSPC); in xfs_dir2_block_to_sf()
245 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_block_to_sf()
280 ASSERT(xfs_dir2_sf_lookup(args) == -ENOENT); in xfs_dir2_sf_addname()
282 ASSERT(dp->i_df.if_flags & XFS_IFINLINE); in xfs_dir2_sf_addname()
287 ASSERT(XFS_FORCED_SHUTDOWN(dp->i_mount)); in xfs_dir2_sf_addname()
290 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_addname()
291 ASSERT(dp->i_df.if_u1.if_data != NULL); in xfs_dir2_sf_addname()
[all …]
Dxfs_inode_fork.c91 ASSERT(ip->i_cowfp == NULL); in xfs_iformat_fork()
98 ASSERT(ip->i_afp == NULL); in xfs_iformat_fork()
308 ASSERT(ifp->if_broot != NULL); in xfs_iformat_btree()
393 ASSERT(XFS_BMAP_BMDR_SPACE(ifp->if_broot) <= in xfs_iroot_realloc()
404 ASSERT((ifp->if_broot != NULL) && (ifp->if_broot_bytes > 0)); in xfs_iroot_realloc()
407 ASSERT(new_max >= 0); in xfs_iroot_realloc()
448 ASSERT(XFS_BMAP_BMDR_SPACE(ifp->if_broot) <= in xfs_iroot_realloc()
478 ASSERT(new_size >= 0); in xfs_idata_realloc()
479 ASSERT(new_size <= XFS_IFORK_SIZE(ip, whichfork)); in xfs_idata_realloc()
559 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL | XFS_ILOCK_SHARED)); in xfs_iextents_copy()
[all …]
Dxfs_attr_remote.c126 ASSERT(len >= blksize); in __xfs_attr3_rmt_read_verify()
191 ASSERT(len >= blksize); in xfs_attr3_rmt_write_verify()
281 ASSERT(len >= blksize); in xfs_attr_rmtval_copyout()
329 ASSERT(len >= blksize); in xfs_attr_rmtval_copyin()
346 ASSERT(*valuelen - byte_cnt == 0); in xfs_attr_rmtval_copyin()
347 ASSERT(len == blksize); in xfs_attr_rmtval_copyin()
386 ASSERT(!(args->flags & ATTR_KERNOVAL)); in xfs_attr_rmtval_get()
387 ASSERT(args->rmtvaluelen == args->valuelen); in xfs_attr_rmtval_get()
397 ASSERT(nmap >= 1); in xfs_attr_rmtval_get()
403 ASSERT((map[i].br_startblock != DELAYSTARTBLOCK) && in xfs_attr_rmtval_get()
[all …]
Dxfs_attr_leaf.c115 ASSERT(!to->count && !to->usedbytes); in xfs_attr3_leaf_firstused_from_disk()
116 ASSERT(geo->blksize > USHRT_MAX); in xfs_attr3_leaf_firstused_from_disk()
131 ASSERT(from->firstused != XFS_ATTR3_LEAF_NULLOFF); in xfs_attr3_leaf_firstused_to_disk()
140 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk()
160 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_attr3_leaf_hdr_from_disk()
202 ASSERT(from->magic == XFS_ATTR_LEAF_MAGIC || in xfs_attr3_leaf_hdr_to_disk()
535 ASSERT(dp != NULL); in xfs_attr_shortform_create()
537 ASSERT(ifp != NULL); in xfs_attr_shortform_create()
538 ASSERT(ifp->if_bytes == 0); in xfs_attr_shortform_create()
544 ASSERT(ifp->if_flags & XFS_IFINLINE); in xfs_attr_shortform_create()
[all …]
Dxfs_bmap.c207 ASSERT(offset < XFS_LITINO(mp, ip->i_d.di_version)); in xfs_default_attroffset()
273 ASSERT(be16_to_cpu(block->bb_level) > 0); in xfs_check_block()
281 ASSERT(be64_to_cpu(prevp->br_startoff) < in xfs_check_block()
354 ASSERT(level > 0); in xfs_bmap_check_leaf_extents()
359 ASSERT(bno != NULLFSBLOCK); in xfs_bmap_check_leaf_extents()
360 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount); in xfs_bmap_check_leaf_extents()
361 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks); in xfs_bmap_check_leaf_extents()
428 ASSERT(xfs_bmbt_disk_get_startoff(&last) + in xfs_bmap_check_leaf_extents()
434 ASSERT(xfs_bmbt_disk_get_startoff(ep) + in xfs_bmap_check_leaf_extents()
497 ASSERT(ret_nmap <= nmap); in xfs_bmap_validate_ret()
[all …]
Dxfs_iext_tree.c61 ASSERT((irec->br_startoff & ~XFS_IEXT_STARTOFF_MASK) == 0); in xfs_iext_set()
62 ASSERT((irec->br_blockcount & ~XFS_IEXT_LENGTH_MASK) == 0); in xfs_iext_set()
63 ASSERT((irec->br_startblock & ~XFS_IEXT_STARTBLOCK_MASK) == 0); in xfs_iext_set()
173 ASSERT(node); in xfs_iext_find_first_leaf()
194 ASSERT(node); in xfs_iext_find_last_leaf()
235 ASSERT(cur->pos <= 0 || cur->pos >= RECS_PER_LEAF); in xfs_iext_next()
240 ASSERT(cur->pos >= 0); in xfs_iext_next()
241 ASSERT(cur->pos < xfs_iext_max_recs(ifp)); in xfs_iext_next()
257 ASSERT(cur->pos <= 0 || cur->pos >= RECS_PER_LEAF); in xfs_iext_prev()
262 ASSERT(cur->pos >= 0); in xfs_iext_prev()
[all …]
/Linux-v4.19/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-v4.19/fs/btrfs/
Dfree-space-tree.c97 ASSERT(0); in search_free_space_info()
121 ASSERT(0); in btrfs_search_prev_slot()
126 ASSERT(0); in btrfs_search_prev_slot()
224 ASSERT(found_key.objectid == block_group->key.objectid); in convert_free_space_to_bitmaps()
225 ASSERT(found_key.offset == block_group->key.offset); in convert_free_space_to_bitmaps()
231 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps()
232 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps()
233 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps()
245 ASSERT(0); in convert_free_space_to_bitmaps()
273 ASSERT(0); in convert_free_space_to_bitmaps()
[all …]
/Linux-v4.19/arch/arm/kernel/
Dvmlinux-xip.lds.S165 ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support")
166 ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")
173 ASSERT(__hyp_idmap_text_end - (__hyp_idmap_text_start & PAGE_MASK) <= PAGE_SIZE,
181 ASSERT((_end - __bss_start) >= 12288, ".bss too small for CONFIG_XIP_DEFLATED_DATA")
198 ASSERT(!(_xiprom & (SZ_1M - 1)), "XIP start address may cause MPU programming issues")
199 ASSERT(!(_exiprom & (SZ_128K - 1)), "XIP end address may cause MPU programming issues")

12345678910