| /linux/include/linux/ |
| A D | mmdebug.h | 19 #define VM_BUG_ON(cond) BUG_ON(cond) macro 96 #define VM_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond) macro 97 #define VM_BUG_ON_PAGE(cond, page) VM_BUG_ON(cond) 98 #define VM_BUG_ON_FOLIO(cond, folio) VM_BUG_ON(cond) 99 #define VM_BUG_ON_VMA(cond, vma) VM_BUG_ON(cond) 100 #define VM_BUG_ON_MM(cond, mm) VM_BUG_ON(cond)
|
| A D | highmem.h | 401 VM_BUG_ON(dst_off + len > PAGE_SIZE || src_off + len > PAGE_SIZE); in memcpy_page() 412 VM_BUG_ON(offset + len > PAGE_SIZE); in memset_page() 422 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_from_page() 432 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_to_page() 442 VM_BUG_ON(offset + len > PAGE_SIZE); in memzero_page() 458 VM_BUG_ON(offset + len > folio_size(folio)); in memcpy_from_folio() 486 VM_BUG_ON(offset + len > folio_size(folio)); in memcpy_to_folio() 561 VM_BUG_ON(offset + len > folio_size(folio)); in folio_fill_tail()
|
| A D | migrate.h | 129 VM_BUG_ON(!__folio_test_movable(folio)); in folio_movable_ops() 138 VM_BUG_ON(!__PageMovable(page)); in page_movable_ops()
|
| A D | gfp.h | 139 VM_BUG_ON((GFP_ZONE_BAD >> bit) & 1); in gfp_zone() 266 VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); in __alloc_pages_node_noprof() 277 VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); in __folio_alloc_node_noprof()
|
| /linux/mm/ |
| A D | pgtable-generic.c | 114 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_set_access_flags() 128 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_clear_flush_young() 141 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_huge_clear_flush() 142 VM_BUG_ON(pmd_present(*pmdp) && !pmd_trans_huge(*pmdp) && in pmdp_huge_clear_flush() 155 VM_BUG_ON(address & ~HPAGE_PUD_MASK); in pudp_huge_clear_flush() 156 VM_BUG_ON(!pud_trans_huge(*pudp) && !pud_devmap(*pudp)); in pudp_huge_clear_flush() 227 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_collapse_flush() 228 VM_BUG_ON(pmd_trans_huge(*pmdp)); in pmdp_collapse_flush()
|
| A D | page_isolation.c | 40 VM_BUG_ON(pageblock_start_pfn(start_pfn) != in has_unmovable_pages() 318 VM_BUG_ON(!pageblock_aligned(boundary_pfn)); in isolate_single_pageblock() 338 VM_BUG_ON(!is_migrate_isolate(mt)); in isolate_single_pageblock() 370 VM_BUG_ON(!page); in isolate_single_pageblock()
|
| A D | ksm.c | 536 VM_BUG_ON(is_stable_node_dup(dup)); in stable_node_chain_add_dup() 538 VM_BUG_ON(!is_stable_node_chain(chain)); in stable_node_chain_add_dup() 545 VM_BUG_ON(!is_stable_node_dup(dup)); in __stable_node_dup_del() 552 VM_BUG_ON(is_stable_node_chain(dup)); in stable_node_dup_del() 593 VM_BUG_ON(stable_node->rmap_hlist_len && in free_stable_node() 781 VM_BUG_ON(is_stable_node_chain(dup)); in alloc_stable_node_chain() 835 VM_BUG_ON(stable_node->rmap_hlist_len <= 0); in remove_node_from_stable_tree() 1121 VM_BUG_ON(is_stable_node_dup(stable_node)); in remove_stable_node_chain() 1130 VM_BUG_ON(!is_stable_node_dup(dup)); in remove_stable_node_chain() 1609 VM_BUG_ON(stable_node->rmap_hlist_len < 0); in __is_page_sharing_candidate() [all …]
|
| A D | khugepaged.c | 1106 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in collapse_huge_page() 1271 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in hpage_collapse_scan_pmd() 1469 VM_BUG_ON(!PageTransHuge(hpage)); in set_huge_pmd() 1818 VM_BUG_ON(!IS_ENABLED(CONFIG_READ_ONLY_THP_FOR_FS) && !is_shmem); in collapse_file() 1819 VM_BUG_ON(start & (HPAGE_PMD_NR - 1)); in collapse_file() 1851 VM_BUG_ON(index != xas.xa_index); in collapse_file() 2229 VM_BUG_ON(!list_empty(&pagelist)); in collapse_file() 2345 VM_BUG_ON(!pages); in khugepaged_scan_mm_slot() 2395 VM_BUG_ON(khugepaged_scan.address & ~HPAGE_PMD_MASK); in khugepaged_scan_mm_slot() 2404 VM_BUG_ON(khugepaged_scan.address < hstart || in khugepaged_scan_mm_slot() [all …]
|
| A D | memcontrol-v1.c | 770 VM_BUG_ON(from == to); in mem_cgroup_move_account() 773 VM_BUG_ON(compound && !folio_test_large(folio)); in mem_cgroup_move_account() 984 VM_BUG_ON(thp_migration_supported() && in get_mctgt_type_thp() 1070 VM_BUG_ON(mc.moving_task); in mem_cgroup_precharge_mc() 1175 VM_BUG_ON(from == memcg); in memcg1_can_attach() 1182 VM_BUG_ON(mc.from); in memcg1_can_attach() 1183 VM_BUG_ON(mc.to); in memcg1_can_attach() 1184 VM_BUG_ON(mc.precharge); in memcg1_can_attach() 1185 VM_BUG_ON(mc.moved_charge); in memcg1_can_attach() 1186 VM_BUG_ON(mc.moved_swap); in memcg1_can_attach() [all …]
|
| A D | huge_memory.c | 1191 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in __do_huge_pmd_anonymous_page() 1314 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in do_huge_pmd_anonymous_page() 1984 VM_BUG_ON(thp_migration_supported() && in madvise_free_huge_pmd() 2149 VM_BUG_ON(pmd_trans_huge(*new_pmd)); in move_huge_pmd() 2165 VM_BUG_ON(!pmd_none(*new_pmd)); in move_huge_pmd() 2570 VM_BUG_ON(haddr & ~HPAGE_PUD_MASK); in __split_huge_pud_locked() 2630 VM_BUG_ON(!pte); in __split_huge_zero_page_pmd() 2638 VM_BUG_ON(!pte_none(ptep_get(pte))); in __split_huge_zero_page_pmd() 2661 VM_BUG_ON(haddr & ~HPAGE_PMD_MASK); in __split_huge_pmd_locked() 2802 VM_BUG_ON(!pte); in __split_huge_pmd_locked() [all …]
|
| A D | swapfile.c | 151 VM_BUG_ON(!(*map & SWAP_HAS_CACHE)); in swap_is_has_cache() 462 VM_BUG_ON(ci->flags & CLUSTER_FLAG_FREE); in swap_cluster_schedule_discard() 529 VM_BUG_ON(ci->count != 0); in free_cluster() 567 VM_BUG_ON(ci->count > SWAPFILE_CLUSTER); in inc_cluster_info_page() 568 VM_BUG_ON(ci->flags); in inc_cluster_info_page() 582 VM_BUG_ON(ci->count < nr_pages); in dec_cluster_info_page() 583 VM_BUG_ON(cluster_is_free(ci)); in dec_cluster_info_page() 689 VM_BUG_ON(!(ci->flags & in cluster_alloc_range() 1054 VM_BUG_ON(!si->cluster_info); in cluster_alloc_swap() 1408 VM_BUG_ON(!has_cache); in __swap_entry_free_locked() [all …]
|
| A D | mremap.c | 100 VM_BUG_ON(pmd_trans_huge(*pmd)); in alloc_new_pmd() 290 VM_BUG_ON(!pmd_none(*new_pmd)); in move_normal_pmd() 340 VM_BUG_ON(!pud_none(*new_pud)); in move_normal_pud() 387 VM_BUG_ON(!pud_none(*new_pud)); in move_huge_pud()
|
| /linux/arch/riscv/mm/ |
| A D | pgtable.c | 144 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_collapse_flush() 145 VM_BUG_ON(pmd_trans_huge(pmdp_get(pmdp))); in pmdp_collapse_flush()
|
| /linux/arch/arm64/include/asm/ |
| A D | pgalloc.h | 129 VM_BUG_ON(mm && mm != &init_mm); in pmd_populate_kernel() 136 VM_BUG_ON(mm == &init_mm); in pmd_populate()
|
| /linux/arch/powerpc/mm/book3s64/ |
| A D | hash_pgtable.c | 228 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in hash__pmdp_collapse_flush() 229 VM_BUG_ON(pmd_trans_huge(*pmdp)); in hash__pmdp_collapse_flush() 230 VM_BUG_ON(pmd_devmap(*pmdp)); in hash__pmdp_collapse_flush()
|
| A D | pgtable.c | 194 VM_BUG_ON(addr & ~HPAGE_PMD_MASK); in pmdp_huge_get_and_clear_full() 195 VM_BUG_ON((pmd_present(*pmdp) && !pmd_trans_huge(*pmdp) && in pmdp_huge_get_and_clear_full() 213 VM_BUG_ON(addr & ~HPAGE_PMD_MASK); in pudp_huge_get_and_clear_full() 214 VM_BUG_ON((pud_present(*pudp) && !pud_devmap(*pudp)) || in pudp_huge_get_and_clear_full()
|
| A D | slice.c | 467 VM_BUG_ON(radix_enabled()); in slice_get_unmapped_area() 669 VM_BUG_ON(radix_enabled()); in get_slice_psize() 734 VM_BUG_ON(radix_enabled()); in slice_set_range_psize() 766 VM_BUG_ON(radix_enabled()); in slice_is_hugepage_only_range()
|
| /linux/fs/ |
| A D | userfaultfd.c | 170 VM_BUG_ON(spin_is_locked(&ctx->fault_wqh.lock)); in userfaultfd_ctx_put() 171 VM_BUG_ON(waitqueue_active(&ctx->fault_wqh)); in userfaultfd_ctx_put() 172 VM_BUG_ON(spin_is_locked(&ctx->event_wqh.lock)); in userfaultfd_ctx_put() 173 VM_BUG_ON(waitqueue_active(&ctx->event_wqh)); in userfaultfd_ctx_put() 174 VM_BUG_ON(spin_is_locked(&ctx->fd_wqh.lock)); in userfaultfd_ctx_put() 175 VM_BUG_ON(waitqueue_active(&ctx->fd_wqh)); in userfaultfd_ctx_put() 389 VM_BUG_ON(reason & ~__VM_UFFD_FLAGS); in handle_userfault() 391 VM_BUG_ON(!reason || (reason & (reason - 1))); in handle_userfault() 606 VM_BUG_ON(atomic_read(&ctx->mmap_changing) < 0); in userfaultfd_event_wait_completion() 714 VM_BUG_ON(atomic_read(&octx->mmap_changing) < 0); in dup_userfaultfd_fail() [all …]
|
| /linux/drivers/misc/ |
| A D | vmw_balloon.c | 1107 VM_BUG_ON(!list_empty(&ctl.pages)); in vmballoon_inflate() 1108 VM_BUG_ON(ctl.n_pages != 0); in vmballoon_inflate() 1200 VM_BUG_ON(!list_empty(&ctl.pages)); in vmballoon_deflate() 1201 VM_BUG_ON(ctl.n_pages); in vmballoon_deflate() 1202 VM_BUG_ON(!list_empty(&ctl.refused_pages)); in vmballoon_deflate() 1203 VM_BUG_ON(ctl.n_refused_pages); in vmballoon_deflate()
|
| /linux/drivers/media/common/videobuf2/ |
| A D | frame_vector.c | 194 VM_BUG_ON(vec->nr_frames > 0); in frame_vector_destroy()
|
| /linux/arch/x86/mm/ |
| A D | hugetlbpage.c | 73 VM_BUG_ON(addr != -ENOMEM); in hugetlb_get_unmapped_area_topdown()
|
| A D | pgtable.c | 521 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_set_access_flags() 541 VM_BUG_ON(address & ~HPAGE_PUD_MASK); in pudp_set_access_flags() 622 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_clear_flush_young()
|
| /linux/arch/s390/include/asm/ |
| A D | mmu_context.h | 47 VM_BUG_ON(mm->context.asce_limit); in init_new_context()
|
| /linux/arch/arm/mm/ |
| A D | mmap.c | 137 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area_topdown()
|
| /linux/arch/s390/mm/ |
| A D | pgalloc.c | 81 VM_BUG_ON(asce_limit < _REGION2_SIZE); in crst_table_upgrade() 106 VM_BUG_ON(asce_limit != mm->context.asce_limit); in crst_table_upgrade()
|