| /linux/include/linux/ |
| H A D | highmem.h | 494 VM_BUG_ON(dst_off + len > PAGE_SIZE || src_off + len > PAGE_SIZE); in memcpy_page() 503 VM_BUG_ON(dst_off + len > folio_size(dst_folio)); in memcpy_folio() 504 VM_BUG_ON(src_off + len > folio_size(src_folio)); in memcpy_folio() 532 VM_BUG_ON(offset + len > PAGE_SIZE); in memset_page() 542 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_from_page() 552 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_to_page() 562 VM_BUG_ON(offset + len > PAGE_SIZE); in memzero_page() 578 VM_BUG_ON(offset + len > folio_size(folio)); in memcpy_from_folio() 606 VM_BUG_ON(offset + len > folio_size(folio)); in memcpy_to_folio() 681 VM_BUG_ON(offset + len > folio_size(folio)); in folio_fill_tail()
|
| /linux/mm/ |
| H A D | hugetlb_internal.h | 34 VM_BUG_ON(nid >= MAX_NUMNODES); in next_node_allowed() 57 VM_BUG_ON(!nodes_allowed); in hstate_next_node_to_alloc() 75 VM_BUG_ON(!nodes_allowed); in hstate_next_node_to_free()
|
| H A D | ksm.c | 541 VM_BUG_ON(is_stable_node_dup(dup)); in stable_node_chain_add_dup() 543 VM_BUG_ON(!is_stable_node_chain(chain)); in stable_node_chain_add_dup() 550 VM_BUG_ON(!is_stable_node_dup(dup)); in __stable_node_dup_del() 557 VM_BUG_ON(is_stable_node_chain(dup)); in stable_node_dup_del() 598 VM_BUG_ON(stable_node->rmap_hlist_len && in free_stable_node() 861 VM_BUG_ON(is_stable_node_chain(dup)); in alloc_stable_node_chain() 915 VM_BUG_ON(stable_node->rmap_hlist_len <= 0); in remove_node_from_stable_tree() 1068 VM_BUG_ON(stable_node->rmap_hlist_len <= 0); in remove_rmap_item_from_tree() 1170 VM_BUG_ON(is_stable_node_dup(stable_node)); in remove_stable_node_chain() 1179 VM_BUG_ON(!is_stable_node_dup(dup)); in remove_stable_node_chain() [all …]
|
| H A D | mremap.c | 138 VM_BUG_ON(pmd_trans_huge(*pmd)); in alloc_new_pmd() 416 VM_BUG_ON(!pmd_none(*new_pmd)); in move_normal_pmd() 468 VM_BUG_ON(!pud_none(*new_pud)); in move_normal_pud() 515 VM_BUG_ON(!pud_none(*new_pud)); in move_huge_pud() 1464 VM_BUG_ON(vrm->remap_type != MREMAP_SHRINK); in mremap_to()
|
| H A D | zsmalloc.c | 746 VM_BUG_ON(list_empty(&class->fullness_list[fullness])); in remove_zspage() 905 VM_BUG_ON(get_zspage_inuse(zspage)); in __free_zspage_lockless() 906 VM_BUG_ON(zspage->fullness != ZS_INUSE_RATIO_0); in __free_zspage_lockless() 934 VM_BUG_ON(get_zspage_inuse(zspage)); in free_zspage() 935 VM_BUG_ON(list_empty(&zspage->list)); in free_zspage()
|
| H A D | mlock.c | 526 VM_BUG_ON(offset_in_page(start)); in apply_vma_lock_flags() 527 VM_BUG_ON(len != PAGE_ALIGN(len)); in apply_vma_lock_flags()
|
| H A D | hugetlb.c | 468 VM_BUG_ON(resv->region_cache_count <= 0); in get_file_region_entry_from_cache() 518 VM_BUG_ON(resv->pages_per_hpage != pages_per_huge_page(h)); in record_hugetlb_cgroup_uncharge_info() 670 VM_BUG_ON(regions_needed < 0); in allocate_file_region_entries() 690 VM_BUG_ON(resv->region_cache_count < resv->adds_in_progress); in allocate_file_region_entries() 762 VM_BUG_ON(t - f <= 1); in region_add() 840 VM_BUG_ON(!resv->region_cache_count); in region_abort() 1128 VM_BUG_ON(resv_map->adds_in_progress); in resv_map_release() 2448 VM_BUG_ON(dummy_out_regions_needed != 1); in __vma_reservation_common() 2453 VM_BUG_ON(ret < 0); in __vma_reservation_common() 2463 VM_BUG_ON(ret < 0); in __vma_reservation_common() [all …]
|
| H A D | huge_memory.c | 1456 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in __do_huge_pmd_anonymous_page() 1602 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in do_huge_pmd_anonymous_page() 2640 VM_BUG_ON(pmd_trans_huge(*new_pmd)); in move_huge_pmd() 2656 VM_BUG_ON(!pmd_none(*new_pmd)); in move_huge_pmd() 3087 VM_BUG_ON(haddr & ~HPAGE_PUD_MASK); in __split_huge_pud_locked() 3090 VM_BUG_ON(!pud_trans_huge(*pud)); in __split_huge_pud_locked() 3162 VM_BUG_ON(!pte); in __split_huge_zero_page_pmd() 3175 VM_BUG_ON(!pte_none(ptep_get(pte))); in __split_huge_zero_page_pmd() 3198 VM_BUG_ON(haddr & ~HPAGE_PMD_MASK); in __split_huge_pmd_locked() 3376 VM_BUG_ON(!pte); in __split_huge_pmd_locked()
|
| H A D | khugepaged.c | 1620 VM_BUG_ON(start_addr & ~HPAGE_PMD_MASK); in collapse_scan_pmd() 2296 VM_BUG_ON(index != xas.xa_index); in collapse_file() 2669 VM_BUG_ON(!list_empty(&pagelist)); in collapse_file() 2899 VM_BUG_ON(khugepaged_scan.address & ~HPAGE_PMD_MASK); in collapse_scan_mm_slot() 2934 VM_BUG_ON(khugepaged_scan.mm_slot != slot); in collapse_scan_mm_slot()
|
| H A D | swapfile.c | 601 VM_BUG_ON(ci->flags == CLUSTER_FLAG_FREE); in swap_cluster_schedule_discard() 635 VM_BUG_ON(!ci->flags); in isolate_lock_cluster() 636 VM_BUG_ON(ci->flags > CLUSTER_FLAG_USABLE && in isolate_lock_cluster() 721 VM_BUG_ON(ci->count != 0); in free_cluster() 722 VM_BUG_ON(ci->flags == CLUSTER_FLAG_FREE); in free_cluster() 746 VM_BUG_ON(!ci->count || ci->count == SWAPFILE_CLUSTER); in partial_free_cluster()
|
| H A D | mempool.c | 727 VM_BUG_ON(mem->ctor); in mempool_alloc_slab()
|
| H A D | readahead.c | 801 VM_BUG_ON(!IS_ALIGNED(ractl->_index, min_nrpages)); in readahead_expand()
|
| /linux/tools/testing/vma/ |
| H A D | vma_internal.h | 58 #define VM_BUG_ON(_expr) (BUG_ON(_expr)) macro
|
| /linux/drivers/misc/ |
| H A D | vmw_balloon.c | 1110 VM_BUG_ON(!list_empty(&ctl.pages)); in vmballoon_inflate() 1111 VM_BUG_ON(ctl.n_pages != 0); in vmballoon_inflate() 1203 VM_BUG_ON(!list_empty(&ctl.pages)); in vmballoon_deflate() 1204 VM_BUG_ON(ctl.n_pages); in vmballoon_deflate() 1205 VM_BUG_ON(!list_empty(&ctl.refused_pages)); in vmballoon_deflate() 1206 VM_BUG_ON(ctl.n_refused_pages); in vmballoon_deflate()
|
| /linux/tools/testing/vma/include/ |
| H A D | custom.h | 21 #define VM_BUG_ON( global() macro
|
| /linux/drivers/media/common/videobuf2/ |
| H A D | frame_vector.c | 194 VM_BUG_ON(vec->nr_frames > 0); in frame_vector_destroy()
|
| /linux/arch/arm/mm/ |
| H A D | mmap.c | 137 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area_topdown()
|
| /linux/arch/sh/mm/ |
| H A D | mmap.c | 156 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area_topdown()
|
| /linux/arch/powerpc/kernel/ |
| H A D | paca.c | 317 VM_BUG_ON(!mm_ctx_slb_addr_limit(context)); in copy_mm_to_paca()
|
| /linux/arch/s390/mm/ |
| H A D | mmap.c | 154 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area_topdown()
|
| H A D | init.c | 285 VM_BUG_ON(!mhp_range_allowed(start, size, true)); in arch_add_memory()
|
| H A D | pgalloc.c | 63 VM_BUG_ON(mm->context.asce_limit < _REGION2_SIZE); in crst_table_upgrade()
|
| /linux/arch/sparc/kernel/ |
| H A D | sys_sparc_64.c | 153 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area() 227 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area_topdown()
|
| /linux/arch/powerpc/kvm/ |
| H A D | book3s_hv_builtin.c | 60 VM_BUG_ON(order_base_2(nr_pages) < KVM_CMA_CHUNK_ORDER - PAGE_SHIFT); in kvm_alloc_hpt_cma()
|
| /linux/arch/arm64/mm/ |
| H A D | mmu.c | 1874 VM_BUG_ON(phys & ~PUD_MASK); in pud_set_huge() 1888 VM_BUG_ON(phys & ~PMD_MASK); in pmd_set_huge() 2012 VM_BUG_ON(!mhp_range_allowed(start, size, true)); in arch_add_memory()
|