Home
last modified time | relevance | path

Searched refs:BUG_ON (Results 1 – 25 of 655) sorted by relevance

12345678910>>...27

/linux-4.19.296/lib/
Datomic64_test.c53 BUG_ON(atomic##bit##_##op(val, &v) != r); \
54 BUG_ON(atomic##bit##_read(&v) != r); \
62 BUG_ON(atomic##bit##_##op(val, &v) != v0); \
63 BUG_ON(atomic##bit##_read(&v) != r); \
79 BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \
80 BUG_ON(atomic##bit##_read(&v) != expect); \
163 BUG_ON(v.counter != r); in test_atomic64()
167 BUG_ON(v.counter != r); in test_atomic64()
168 BUG_ON(atomic64_read(&v) != r); in test_atomic64()
197 BUG_ON(v.counter != r); in test_atomic64()
[all …]
Dplist.c152 BUG_ON(plist_head_empty(head)); in plist_requeue()
153 BUG_ON(plist_node_empty(node)); in plist_requeue()
189 BUG_ON(nr_expect != 0); in plist_test_check()
200 BUG_ON(!list_empty(&node_pos->prio_list)); in plist_test_check()
204 BUG_ON(prio_pos->prio > node_pos->prio); in plist_test_check()
205 BUG_ON(prio_pos->prio_list.next != &node_pos->prio_list); in plist_test_check()
209 BUG_ON(nr_expect != 0); in plist_test_check()
210 BUG_ON(prio_pos->prio_list.next != &first->prio_list); in plist_test_check()
218 BUG_ON(node->prio == plist_next(node)->prio); in plist_test_requeue()
Dlru_cache.c41 BUG_ON(!lc); \
42 BUG_ON(!lc->nr_elements); \
43 BUG_ON(test_and_set_bit(__LC_PARANOIA, &lc->flags)); \
55 BUG_ON(i >= lc_->nr_elements); \
56 BUG_ON(lc_->lc_element[i] != e_); } while (0)
266 BUG_ON(!lc); in __lc_find()
267 BUG_ON(!lc->nr_elements); in __lc_find()
325 BUG_ON(e->refcnt); in lc_del()
442 BUG_ON(!e); in __lc_get()
445 BUG_ON(++e->refcnt != 1); in __lc_get()
[all …]
Dassoc_array.c249 BUG_ON(sc_level > shortcut->skip_to_level); in assoc_array_walk()
367 BUG_ON(!assoc_array_ptr_is_shortcut(cursor)); in assoc_array_destroy_subtree()
369 BUG_ON(shortcut->back_pointer != parent); in assoc_array_destroy_subtree()
370 BUG_ON(slot != -1 && shortcut->parent_slot != slot); in assoc_array_destroy_subtree()
374 BUG_ON(!assoc_array_ptr_is_node(cursor)); in assoc_array_destroy_subtree()
379 BUG_ON(node->back_pointer != parent); in assoc_array_destroy_subtree()
380 BUG_ON(slot != -1 && node->parent_slot != slot); in assoc_array_destroy_subtree()
412 BUG_ON(shortcut->next_node != cursor); in assoc_array_destroy_subtree()
421 BUG_ON(!assoc_array_ptr_is_node(parent)); in assoc_array_destroy_subtree()
644 BUG_ON(i >= ASSOC_ARRAY_FAN_OUT); in assoc_array_insert_into_terminal_node()
[all …]
/linux-4.19.296/drivers/clk/sirf/
Dclk-atlas7.c1452 BUG_ON(!clk); in atlas7_clk_init()
1454 BUG_ON(!clk); in atlas7_clk_init()
1456 BUG_ON(!clk); in atlas7_clk_init()
1458 BUG_ON(!clk); in atlas7_clk_init()
1460 BUG_ON(!clk); in atlas7_clk_init()
1462 BUG_ON(!clk); in atlas7_clk_init()
1467 BUG_ON(!clk); in atlas7_clk_init()
1471 BUG_ON(!clk); in atlas7_clk_init()
1475 BUG_ON(!clk); in atlas7_clk_init()
1480 BUG_ON(!clk); in atlas7_clk_init()
[all …]
/linux-4.19.296/fs/ntfs/
Daops.c146 BUG_ON(!recs); in ntfs_end_buffer_async_read()
203 BUG_ON(!ni->runlist.rl && !ni->mft_no && !NInoAttr(ni)); in ntfs_read_block()
216 BUG_ON(!bh); in ntfs_read_block()
408 BUG_ON(!PageLocked(page)); in ntfs_readpage()
438 BUG_ON(ni->type != AT_DATA); in ntfs_readpage()
444 BUG_ON(ni->type != AT_DATA); in ntfs_readpage()
445 BUG_ON(ni->name_len); in ntfs_readpage()
572 BUG_ON(!NInoNonResident(ni)); in ntfs_write_block()
573 BUG_ON(NInoMstProtected(ni)); in ntfs_write_block()
577 BUG_ON(!PageUptodate(page)); in ntfs_write_block()
[all …]
Dcollate.c53 BUG_ON(data1_len != data2_len); in ntfs_collate_ntofs_ulong()
54 BUG_ON(data1_len != 4); in ntfs_collate_ntofs_ulong()
111 BUG_ON(cr != COLLATION_BINARY && cr != COLLATION_NTOFS_ULONG); in ntfs_collate()
113 BUG_ON(i < 0); in ntfs_collate()
117 BUG_ON(i < 0x10); in ntfs_collate()
Dbitmap.c58 BUG_ON(!vi); in __ntfs_bitmap_set_bits_in_run()
63 BUG_ON(start_bit < 0); in __ntfs_bitmap_set_bits_in_run()
64 BUG_ON(cnt < 0); in __ntfs_bitmap_set_bits_in_run()
65 BUG_ON(value > 1); in __ntfs_bitmap_set_bits_in_run()
121 BUG_ON(cnt <= 0); in __ntfs_bitmap_set_bits_in_run()
147 BUG_ON(cnt > 7); in __ntfs_bitmap_set_bits_in_run()
Dfile.c129 BUG_ON(new_init_size > ni->allocated_size); in ntfs_attr_extend_initialized()
144 BUG_ON(old_init_size != old_i_size); in ntfs_attr_extend_initialized()
165 BUG_ON(a->non_resident); in ntfs_attr_extend_initialized()
168 BUG_ON(old_i_size != (loff_t)attr_len); in ntfs_attr_extend_initialized()
209 BUG_ON(!a->non_resident); in ntfs_attr_extend_initialized()
210 BUG_ON(old_i_size != (loff_t) in ntfs_attr_extend_initialized()
283 BUG_ON(ni->initialized_size != new_init_size); in ntfs_attr_extend_initialized()
306 BUG_ON(!a->non_resident); in ntfs_attr_extend_initialized()
355 BUG_ON(NInoMstProtected(ni)); in ntfs_prepare_file_for_write()
356 BUG_ON(ni->type != AT_DATA); in ntfs_prepare_file_for_write()
[all …]
Drunlist.c131 BUG_ON(!new_rl); in ntfs_rl_realloc_nofail()
158 BUG_ON(!dst); in ntfs_are_rl_mergeable()
159 BUG_ON(!src); in ntfs_are_rl_mergeable()
224 BUG_ON(!dst); in ntfs_rl_append()
225 BUG_ON(!src); in ntfs_rl_append()
292 BUG_ON(!dst); in ntfs_rl_insert()
293 BUG_ON(!src); in ntfs_rl_insert()
390 BUG_ON(!dst); in ntfs_rl_replace()
391 BUG_ON(!src); in ntfs_rl_replace()
473 BUG_ON(!dst); in ntfs_rl_split()
[all …]
Dmft.c59 BUG_ON(ni->page); in map_mft_record_page()
196 BUG_ON(!ni->page); in unmap_mft_record_page()
220 BUG_ON(!page); in unmap_mft_record()
347 BUG_ON(!base_ni->ext.extent_ntfs_inos); in map_extent_mft_record()
403 BUG_ON(NInoAttr(ni)); in __mark_mft_record_dirty()
444 BUG_ON(vol->mftmirr_ino); in ntfs_sync_mft_mirror_umount()
483 BUG_ON(!max_bhs); in ntfs_sync_mft_mirror()
502 BUG_ON(!PageUptodate(page)); in ntfs_sync_mft_mirror()
524 BUG_ON(!bh); in ntfs_sync_mft_mirror()
557 BUG_ON(!rl); in ntfs_sync_mft_mirror()
[all …]
/linux-4.19.296/fs/ocfs2/dlm/
Ddlmast.c71 BUG_ON(lock->ml.highest_blocked == LKM_NLMODE); in dlm_should_cancel_bast()
95 BUG_ON(!dlm); in __dlm_queue_ast()
96 BUG_ON(!lock); in __dlm_queue_ast()
148 BUG_ON(!dlm); in dlm_queue_ast()
149 BUG_ON(!lock); in dlm_queue_ast()
161 BUG_ON(!dlm); in __dlm_queue_bast()
162 BUG_ON(!lock); in __dlm_queue_bast()
168 BUG_ON(!list_empty(&lock->bast_list)); in __dlm_queue_bast()
185 BUG_ON(!dlm); in dlm_queue_bast()
186 BUG_ON(!lock); in dlm_queue_bast()
[all …]
/linux-4.19.296/fs/ocfs2/
Duptodate.c74 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_owner()
81 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_get_super()
88 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_lock()
95 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_unlock()
102 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_io_lock()
109 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_io_unlock()
130 BUG_ON(!ops); in ocfs2_metadata_cache_init()
176 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_purge()
306 BUG_ON(ci->ci_num_cached >= OCFS2_CACHE_INFO_MAX_ARRAY); in ocfs2_append_cache_array()
525 BUG_ON(ocfs2_buffer_cached(ci, bh)); in ocfs2_set_new_buffer_uptodate()
[all …]
Dstackglue.c161 BUG_ON(active_stack == NULL); in ocfs2_stack_driver_put()
162 BUG_ON(active_stack->sp_count == 0); in ocfs2_stack_driver_put()
202 BUG_ON(p != plugin); in ocfs2_stack_glue_unregister()
203 BUG_ON(plugin == active_stack); in ocfs2_stack_glue_unregister()
204 BUG_ON(plugin->sp_count != 0); in ocfs2_stack_glue_unregister()
223 BUG_ON(locking_max_version.pv_major != 0); in ocfs2_stack_glue_set_max_proto_version()
251 BUG_ON(lksb->lksb_conn != conn); in ocfs2_dlm_lock()
261 BUG_ON(lksb->lksb_conn == NULL); in ocfs2_dlm_unlock()
325 BUG_ON(group == NULL); in ocfs2_cluster_connect()
326 BUG_ON(conn == NULL); in ocfs2_cluster_connect()
[all …]
Dsuballoc.c262 BUG_ON(!buffer_uptodate(bh)); in ocfs2_check_group_descriptor()
291 BUG_ON(!buffer_uptodate(bh)); in ocfs2_validate_group_descriptor()
342 BUG_ON(!ocfs2_supports_discontig_bg(osb)); in ocfs2_bg_discontig_add_extent()
683 BUG_ON(ocfs2_is_cluster_bitmap(alloc_inode)); in ocfs2_block_group_alloc()
816 BUG_ON(!OCFS2_IS_VALID_DINODE(fe)); in ocfs2_reserve_suballoc_bits()
855 BUG_ON(bits_wanted > in ocfs2_reserve_suballoc_bits()
1301 BUG_ON(!OCFS2_IS_VALID_GROUP_DESC(bg)); in ocfs2_block_group_find_clear_bits()
1361 BUG_ON(!OCFS2_IS_VALID_GROUP_DESC(bg)); in ocfs2_block_group_set_bits()
1362 BUG_ON(le16_to_cpu(bg->bg_free_bits_count) < num_bits); in ocfs2_block_group_set_bits()
1400 BUG_ON(!cl->cl_next_free_rec); in ocfs2_find_victim_chain()
[all …]
Dsysfile.c63 BUG_ON(slot == OCFS2_INVALID_SLOT); in get_local_system_inode()
64 BUG_ON(type < OCFS2_FIRST_LOCAL_SYSTEM_INODE || in get_local_system_inode()
122 BUG_ON(!inode); in ocfs2_get_system_file_inode()
133 BUG_ON(!*arr); in ocfs2_get_system_file_inode()
Dreservations.c209 BUG_ON(flags & ~OCFS2_RESV_TYPES); in ocfs2_resv_set_type()
338 BUG_ON(ocfs2_resv_end(new) >= tmp->r_start); in ocfs2_resv_insert()
507 BUG_ON(goal == 0 && clen == 0); in __ocfs2_resv_find_window()
697 BUG_ON(!ocfs2_resv_empty(resv)); in ocfs2_resv_find_window()
724 BUG_ON(ocfs2_resv_empty(resv)); in ocfs2_resv_find_window()
758 BUG_ON(ocfs2_resv_empty(resv)); in ocfs2_resmap_resv_bits()
775 BUG_ON(start != resv->r_start || old_end < end); in ocfs2_adjust_resv_from_alloc()
790 BUG_ON(rhs == 0); in ocfs2_adjust_resv_from_alloc()
808 BUG_ON(cstart != resv->r_start); in ocfs2_resmap_claimed_bits()
817 BUG_ON(cstart < resv->r_start); in ocfs2_resmap_claimed_bits()
[all …]
/linux-4.19.296/block/partitions/
Dldm.c85 BUG_ON(!data || !ph); in ldm_parse_privhead()
142 BUG_ON (!data || !toc); in ldm_parse_tocblock()
188 BUG_ON (!data || !vm); in ldm_parse_vmdb()
229 BUG_ON (!ph1 || !ph2); in ldm_compare_privheads()
253 BUG_ON (!toc1 || !toc2); in ldm_compare_tocblocks()
290 BUG_ON (!state || !ph1); in ldm_validate_privheads()
378 BUG_ON(!state || !ldb); in ldm_validate_tocblocks()
450 BUG_ON (!state || !ldb); in ldm_validate_vmdb()
514 BUG_ON(!state); in ldm_validate_partition_table()
556 BUG_ON (!ldb); in ldm_get_disk_objid()
[all …]
/linux-4.19.296/drivers/base/regmap/
Dregmap-spmi.c32 BUG_ON(reg_size != 1); in regmap_spmi_base_read()
48 BUG_ON(reg_size != 1); in regmap_spmi_base_gather_write()
81 BUG_ON(count < 1); in regmap_spmi_base_write()
122 BUG_ON(reg_size != 2); in regmap_spmi_ext_read()
166 BUG_ON(reg_size != 2); in regmap_spmi_ext_gather_write()
201 BUG_ON(count < 2); in regmap_spmi_ext_write()
/linux-4.19.296/include/linux/
Ddma-mapping.h234 BUG_ON(!valid_dma_direction(dir)); in dma_map_single_attrs()
251 BUG_ON(!valid_dma_direction(dir)); in dma_unmap_single_attrs()
268 BUG_ON(!valid_dma_direction(dir)); in dma_map_sg_attrs()
270 BUG_ON(ents < 0); in dma_map_sg_attrs()
282 BUG_ON(!valid_dma_direction(dir)); in dma_unmap_sg_attrs()
297 BUG_ON(!valid_dma_direction(dir)); in dma_map_page_attrs()
311 BUG_ON(!valid_dma_direction(dir)); in dma_unmap_page_attrs()
326 BUG_ON(!valid_dma_direction(dir)); in dma_map_resource()
329 BUG_ON(pfn_valid(PHYS_PFN(phys_addr))); in dma_map_resource()
346 BUG_ON(!valid_dma_direction(dir)); in dma_unmap_resource()
[all …]
/linux-4.19.296/fs/btrfs/
Dlocking.c65 BUG_ON(atomic_read(&eb->blocking_writers) != 1); in btrfs_clear_lock_blocking_rw()
73 BUG_ON(atomic_read(&eb->blocking_readers) == 0); in btrfs_clear_lock_blocking_rw()
89 BUG_ON(!atomic_read(&eb->blocking_writers) && in btrfs_tree_read_lock()
101 BUG_ON(eb->lock_nested); in btrfs_tree_read_lock()
260 BUG_ON(blockers > 1); in btrfs_tree_unlock()
281 BUG_ON(!atomic_read(&eb->write_locks)); in btrfs_assert_tree_locked()
286 BUG_ON(!atomic_read(&eb->read_locks)); in btrfs_assert_tree_read_locked()
/linux-4.19.296/drivers/misc/sgi-xp/
Dxp_uv.c51 BUG_ON(!uv_gpa_in_mmr_space(src_gpa)); in xp_remote_mmr_read()
52 BUG_ON(len != 8); in xp_remote_mmr_read()
151 BUG_ON(!is_uv()); in xp_init_uv()
170 BUG_ON(!is_uv()); in xp_exit_uv()
/linux-4.19.296/fs/ext4/
Dmballoc.c433 BUG_ON(e4b->bd_bitmap == e4b->bd_buddy); in mb_find_buddy()
434 BUG_ON(max == NULL); in mb_find_buddy()
490 BUG_ON(mb_test_bit(first + i, e4b->bd_info->bb_bitmap)); in mb_mark_used_double()
664 BUG_ON(len > EXT4_CLUSTERS_PER_GROUP(sb)); in ext4_mb_mark_free_simple()
915 BUG_ON(incore == NULL); in ext4_mb_init_cache()
935 BUG_ON(incore != NULL); in ext4_mb_init_cache()
996 BUG_ON(page->mapping != inode->i_mapping); in ext4_mb_get_buddy_page_lock()
1010 BUG_ON(page->mapping != inode->i_mapping); in ext4_mb_get_buddy_page_lock()
1161 BUG_ON(page->mapping != inode->i_mapping); in ext4_mb_load_buddy_gfp()
1197 BUG_ON(page->mapping != inode->i_mapping); in ext4_mb_load_buddy_gfp()
[all …]
/linux-4.19.296/fs/ocfs2/dlmfs/
Duserdlm.c254 BUG_ON(!(lockres->l_flags & USER_LOCK_IN_CANCEL)); in user_unlock_ast()
258 BUG_ON(!(lockres->l_flags & USER_LOCK_IN_CANCEL)); in user_unlock_ast()
421 BUG_ON(!(lockres->l_flags & USER_LOCK_BLOCKED)); in user_may_continue_on_blocked_lock()
490 BUG_ON(level == DLM_LOCK_IV); in user_dlm_cluster_lock()
491 BUG_ON(level == DLM_LOCK_NL); in user_dlm_cluster_lock()
523 BUG_ON(!lockres->l_ex_holders); in user_dlm_dec_holders()
527 BUG_ON(!lockres->l_ro_holders); in user_dlm_dec_holders()
558 BUG_ON(len > DLM_LVB_LEN); in user_dlm_write_lvb()
562 BUG_ON(lockres->l_level < DLM_LOCK_EX); in user_dlm_write_lvb()
577 BUG_ON(len > DLM_LVB_LEN); in user_dlm_read_lvb()
[all …]
/linux-4.19.296/drivers/parisc/
Dccio-dma.c351 BUG_ON(pages_needed == 0); in ccio_alloc_range()
352 BUG_ON((pages_needed * IOVP_SIZE) > DMA_CHUNK_SIZE); in ccio_alloc_range()
421 BUG_ON((*res_ptr & mask) != mask); \
439 BUG_ON(pages_mapped == 0); in ccio_free_range()
440 BUG_ON((pages_mapped * IOVP_SIZE) > DMA_CHUNK_SIZE); in ccio_free_range()
441 BUG_ON(pages_mapped > BITS_PER_LONG); in ccio_free_range()
566 BUG_ON(sid != KERNEL_SPACE); in ccio_io_pdir_entry()
677 BUG_ON(idx >= (ioc->pdir_size / sizeof(u64))); in ccio_mark_invalid()
742 BUG_ON(!dev); in ccio_map_single()
747 BUG_ON(size <= 0); in ccio_map_single()
[all …]

12345678910>>...27