/openbmc/linux/include/linux/ |
H 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)
|
H A D | highmem.h | 395 VM_BUG_ON(dst_off + len > PAGE_SIZE || src_off + len > PAGE_SIZE); in memcpy_page() 406 VM_BUG_ON(offset + len > PAGE_SIZE); in memset_page() 416 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_from_page() 426 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_to_page() 436 VM_BUG_ON(offset + len > PAGE_SIZE); in memzero_page() 445 VM_BUG_ON(offset + len > folio_size(folio)); in memcpy_from_folio() 466 VM_BUG_ON(offset + len > folio_size(folio)); in memcpy_to_folio()
|
H 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()
|
H A D | gfp.h | 136 VM_BUG_ON((GFP_ZONE_BAD >> bit) & 1); in gfp_zone() 234 VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); in __alloc_pages_node() 243 VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); in __folio_alloc_node()
|
/openbmc/linux/mm/ |
H 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()
|
H A D | ksm.c | 357 VM_BUG_ON(is_stable_node_dup(dup)); in stable_node_chain_add_dup() 359 VM_BUG_ON(!is_stable_node_chain(chain)); in stable_node_chain_add_dup() 366 VM_BUG_ON(!is_stable_node_dup(dup)); in __stable_node_dup_del() 373 VM_BUG_ON(is_stable_node_chain(dup)); in stable_node_dup_del() 414 VM_BUG_ON(stable_node->rmap_hlist_len && in free_stable_node() 631 VM_BUG_ON(is_stable_node_chain(dup)); in alloc_stable_node_chain() 685 VM_BUG_ON(stable_node->rmap_hlist_len <= 0); in remove_node_from_stable_tree() 836 VM_BUG_ON(stable_node->rmap_hlist_len <= 0); in remove_rmap_item_from_tree() 970 VM_BUG_ON(is_stable_node_dup(stable_node)); in remove_stable_node_chain() 979 VM_BUG_ON(!is_stable_node_dup(dup)); in remove_stable_node_chain() [all …]
|
H A D | page_isolation.c | 40 VM_BUG_ON(pageblock_start_pfn(start_pfn) != in has_unmovable_pages() 315 VM_BUG_ON(!pageblock_aligned(boundary_pfn)); in isolate_single_pageblock() 335 VM_BUG_ON(!is_migrate_isolate(mt)); in isolate_single_pageblock() 367 VM_BUG_ON(!page); in isolate_single_pageblock()
|
H A D | huge_memory.c | 688 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in __do_huge_pmd_anonymous_page() 806 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in do_huge_pmd_anonymous_page() 1084 VM_BUG_ON(!is_pmd_migration_entry(pmd)); in copy_huge_pmd() 1589 VM_BUG_ON(thp_migration_supported() && in madvise_free_huge_pmd() 1688 VM_BUG_ON(!is_pmd_migration_entry(orig_pmd)); in zap_huge_pmd() 1751 VM_BUG_ON(pmd_trans_huge(*new_pmd)); in move_huge_pmd() 1767 VM_BUG_ON(!pmd_none(*new_pmd)); in move_huge_pmd() 1820 VM_BUG_ON(!is_pmd_migration_entry(*pmd)); in change_huge_pmd() 1983 VM_BUG_ON(haddr & ~HPAGE_PUD_MASK); in __split_huge_pud_locked() 1986 VM_BUG_ON(!pud_trans_huge(*pud) && !pud_devmap(*pud)); in __split_huge_pud_locked() [all …]
|
H A D | khugepaged.c | 1087 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in collapse_huge_page() 1248 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in hpage_collapse_scan_pmd() 1440 VM_BUG_ON(!PageTransHuge(hpage)); in set_huge_pmd() 1795 VM_BUG_ON(!IS_ENABLED(CONFIG_READ_ONLY_THP_FOR_FS) && !is_shmem); in collapse_file() 1796 VM_BUG_ON(start & (HPAGE_PMD_NR - 1)); in collapse_file() 1828 VM_BUG_ON(index != xas.xa_index); in collapse_file() 2205 VM_BUG_ON(!list_empty(&pagelist)); in collapse_file() 2329 VM_BUG_ON(!pages); in khugepaged_scan_mm_slot() 2378 VM_BUG_ON(khugepaged_scan.address & ~HPAGE_PMD_MASK); in khugepaged_scan_mm_slot() 2387 VM_BUG_ON(khugepaged_scan.address < hstart || in khugepaged_scan_mm_slot() [all …]
|
H A D | zsmalloc.c | 707 VM_BUG_ON(list_empty(&class->fullness_list[fullness])); in remove_zspage() 859 VM_BUG_ON(get_zspage_inuse(zspage)); in __free_zspage() 860 VM_BUG_ON(fg != ZS_INUSE_RATIO_0); in __free_zspage() 882 VM_BUG_ON(get_zspage_inuse(zspage)); in free_zspage() 883 VM_BUG_ON(list_empty(&zspage->list)); in free_zspage() 1749 VM_BUG_ON(zspage->isolated == 0); in dec_zspage_isolation() 1930 VM_BUG_ON(fullness != ZS_INUSE_RATIO_0); in async_free_zspage()
|
H 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()
|
H A D | hugetlb_vmemmap.c | 187 VM_BUG_ON(!PAGE_ALIGNED(start)); in vmemmap_remap_range() 188 VM_BUG_ON(!PAGE_ALIGNED(end)); in vmemmap_remap_range()
|
H A D | gup.c | 865 VM_BUG_ON(fault_flags & FAULT_FLAG_WRITE); in faultin_page() 1110 VM_BUG_ON(!!pages != !!(gup_flags & (FOLL_GET | FOLL_PIN))); in __get_user_pages() 1557 VM_BUG_ON(!PAGE_ALIGNED(start)); in populate_vma_page_range() 1558 VM_BUG_ON(!PAGE_ALIGNED(end)); in populate_vma_page_range() 1627 VM_BUG_ON(!PAGE_ALIGNED(start)); in faultin_page_range() 1628 VM_BUG_ON(!PAGE_ALIGNED(end)); in faultin_page_range() 2606 VM_BUG_ON(!pfn_valid(pte_pfn(pte))); in gup_pte_range() 2807 VM_BUG_ON(!pfn_valid(pte_pfn(pte))); in gup_hugepte()
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | pgalloc.h | 79 VM_BUG_ON(mm && mm != &init_mm); in pmd_populate_kernel() 86 VM_BUG_ON(mm == &init_mm); in pmd_populate()
|
/openbmc/linux/arch/riscv/mm/ |
H A D | pgtable.c | 131 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_collapse_flush() 132 VM_BUG_ON(pmd_trans_huge(pmdp_get(pmdp))); in pmdp_collapse_flush()
|
/openbmc/linux/arch/powerpc/mm/book3s64/ |
H A D | pgtable.c | 183 VM_BUG_ON(addr & ~HPAGE_PMD_MASK); in pmdp_huge_get_and_clear_full() 184 VM_BUG_ON((pmd_present(*pmdp) && !pmd_trans_huge(*pmdp) && in pmdp_huge_get_and_clear_full() 202 VM_BUG_ON(addr & ~HPAGE_PMD_MASK); in pudp_huge_get_and_clear_full() 203 VM_BUG_ON((pud_present(*pudp) && !pud_devmap(*pudp)) || in pudp_huge_get_and_clear_full()
|
H 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()
|
H A D | slice.c | 469 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()
|
/openbmc/linux/fs/ |
H A D | userfaultfd.c | 217 VM_BUG_ON(spin_is_locked(&ctx->fault_pending_wqh.lock)); in userfaultfd_ctx_put() 218 VM_BUG_ON(waitqueue_active(&ctx->fault_pending_wqh)); in userfaultfd_ctx_put() 219 VM_BUG_ON(spin_is_locked(&ctx->fault_wqh.lock)); in userfaultfd_ctx_put() 220 VM_BUG_ON(waitqueue_active(&ctx->fault_wqh)); in userfaultfd_ctx_put() 221 VM_BUG_ON(spin_is_locked(&ctx->event_wqh.lock)); in userfaultfd_ctx_put() 222 VM_BUG_ON(waitqueue_active(&ctx->event_wqh)); in userfaultfd_ctx_put() 223 VM_BUG_ON(spin_is_locked(&ctx->fd_wqh.lock)); in userfaultfd_ctx_put() 224 VM_BUG_ON(waitqueue_active(&ctx->fd_wqh)); in userfaultfd_ctx_put() 445 VM_BUG_ON(reason & ~__VM_UFFD_FLAGS); in handle_userfault() 447 VM_BUG_ON(!reason || (reason & (reason - 1))); in handle_userfault() [all …]
|
/openbmc/linux/drivers/misc/ |
H A D | vmw_balloon.c | 1116 VM_BUG_ON(!list_empty(&ctl.pages)); in vmballoon_inflate() 1117 VM_BUG_ON(ctl.n_pages != 0); in vmballoon_inflate() 1209 VM_BUG_ON(!list_empty(&ctl.pages)); in vmballoon_deflate() 1210 VM_BUG_ON(ctl.n_pages); in vmballoon_deflate() 1211 VM_BUG_ON(!list_empty(&ctl.refused_pages)); in vmballoon_deflate() 1212 VM_BUG_ON(ctl.n_refused_pages); in vmballoon_deflate()
|
/openbmc/linux/drivers/media/common/videobuf2/ |
H A D | frame_vector.c | 194 VM_BUG_ON(vec->nr_frames > 0); in frame_vector_destroy()
|
/openbmc/linux/arch/x86/mm/ |
H A D | pgtable.c | 518 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_set_access_flags() 538 VM_BUG_ON(address & ~HPAGE_PUD_MASK); in pudp_set_access_flags() 619 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_clear_flush_young()
|
H A D | hugetlbpage.c | 102 VM_BUG_ON(addr != -ENOMEM); in hugetlb_get_unmapped_area_topdown()
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | mmu_context.h | 48 VM_BUG_ON(mm->context.asce_limit); in init_new_context()
|
/openbmc/linux/arch/arm/mm/ |
H A D | mmap.c | 137 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area_topdown()
|