| /linux-6.15/include/linux/ |
| H A D | mmdebug.h | 21 #define VM_BUG_ON(cond) BUG_ON(cond) macro 107 #define VM_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond) macro 108 #define VM_BUG_ON_PAGE(cond, page) VM_BUG_ON(cond) 109 #define VM_BUG_ON_FOLIO(cond, folio) VM_BUG_ON(cond) 110 #define VM_BUG_ON_VMA(cond, vma) VM_BUG_ON(cond) 111 #define VM_BUG_ON_MM(cond, mm) VM_BUG_ON(cond)
|
| H 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()
|
| 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 | 158 VM_BUG_ON((GFP_ZONE_BAD >> bit) & 1); in gfp_zone() 281 VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); in __alloc_pages_node_noprof() 292 VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); in __folio_alloc_node_noprof()
|
| /linux-6.15/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 | page_isolation.c | 40 VM_BUG_ON(pageblock_start_pfn(start_pfn) != in has_unmovable_pages() 323 VM_BUG_ON(!pageblock_aligned(boundary_pfn)); in isolate_single_pageblock() 343 VM_BUG_ON(!is_migrate_isolate(mt)); in isolate_single_pageblock() 375 VM_BUG_ON(!page); in isolate_single_pageblock()
|
| H A D | ksm.c | 535 VM_BUG_ON(is_stable_node_dup(dup)); in stable_node_chain_add_dup() 537 VM_BUG_ON(!is_stable_node_chain(chain)); in stable_node_chain_add_dup() 544 VM_BUG_ON(!is_stable_node_dup(dup)); in __stable_node_dup_del() 551 VM_BUG_ON(is_stable_node_chain(dup)); in stable_node_dup_del() 592 VM_BUG_ON(stable_node->rmap_hlist_len && in free_stable_node() 780 VM_BUG_ON(is_stable_node_chain(dup)); in alloc_stable_node_chain() 834 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() 1616 VM_BUG_ON(stable_node->rmap_hlist_len < 0); in __is_page_sharing_candidate() [all …]
|
| H A D | swap_cgroup.c | 78 VM_BUG_ON(old); in swap_cgroup_record() 107 VM_BUG_ON(iter != old); in swap_cgroup_clear()
|
| H A D | khugepaged.c | 1118 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in collapse_huge_page() 1283 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in hpage_collapse_scan_pmd() 1479 VM_BUG_ON(!PageTransHuge(hpage)); in set_huge_pmd() 1849 VM_BUG_ON(!IS_ENABLED(CONFIG_READ_ONLY_THP_FOR_FS) && !is_shmem); in collapse_file() 1850 VM_BUG_ON(start & (HPAGE_PMD_NR - 1)); in collapse_file() 1884 VM_BUG_ON(index != xas.xa_index); in collapse_file() 2262 VM_BUG_ON(!list_empty(&pagelist)); in collapse_file() 2378 VM_BUG_ON(!pages); in khugepaged_scan_mm_slot() 2428 VM_BUG_ON(khugepaged_scan.address & ~HPAGE_PMD_MASK); in khugepaged_scan_mm_slot() 2437 VM_BUG_ON(khugepaged_scan.address < hstart || in khugepaged_scan_mm_slot() [all …]
|
| H A D | swapfile.c | 180 VM_BUG_ON(!(*map & SWAP_HAS_CACHE)); in swap_only_has_cache() 485 VM_BUG_ON(ci->flags == CLUSTER_FLAG_FREE); in swap_cluster_schedule_discard() 521 VM_BUG_ON(!ci->flags); in isolate_lock_cluster() 600 VM_BUG_ON(ci->count != 0); in free_cluster() 601 VM_BUG_ON(ci->flags == CLUSTER_FLAG_FREE); in free_cluster() 675 VM_BUG_ON(ci->count > SWAPFILE_CLUSTER); in inc_cluster_info_page() 676 VM_BUG_ON(ci->flags); in inc_cluster_info_page() 1371 VM_BUG_ON(!has_cache); in __swap_entry_free_locked() 1536 VM_BUG_ON(cluster_is_empty(ci)); in swap_entry_range_free() 1537 VM_BUG_ON(ci->count < nr_pages); in swap_entry_range_free() [all …]
|
| H A D | huge_memory.c | 1250 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in __do_huge_pmd_anonymous_page() 1359 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in do_huge_pmd_anonymous_page() 2322 VM_BUG_ON(pmd_trans_huge(*new_pmd)); in move_huge_pmd() 2338 VM_BUG_ON(!pmd_none(*new_pmd)); in move_huge_pmd() 2761 VM_BUG_ON(haddr & ~HPAGE_PUD_MASK); in __split_huge_pud_locked() 2836 VM_BUG_ON(!pte); in __split_huge_zero_page_pmd() 2844 VM_BUG_ON(!pte_none(ptep_get(pte))); in __split_huge_zero_page_pmd() 2867 VM_BUG_ON(haddr & ~HPAGE_PMD_MASK); in __split_huge_pmd_locked() 3010 VM_BUG_ON(!pte); in __split_huge_pmd_locked() 3083 VM_BUG_ON(freeze && !folio); in split_huge_pmd_locked() [all …]
|
| H A D | mremap.c | 137 VM_BUG_ON(pmd_trans_huge(*pmd)); in alloc_new_pmd() 360 VM_BUG_ON(!pmd_none(*new_pmd)); in move_normal_pmd() 419 VM_BUG_ON(!pud_none(*new_pud)); in move_normal_pud() 466 VM_BUG_ON(!pud_none(*new_pud)); in move_huge_pud() 1355 VM_BUG_ON(vrm->remap_type != MREMAP_SHRINK); in shrink_vma()
|
| /linux-6.15/arch/riscv/mm/ |
| H 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-6.15/arch/arm64/include/asm/ |
| H A D | pgalloc.h | 111 VM_BUG_ON(mm && mm != &init_mm); in pmd_populate_kernel() 119 VM_BUG_ON(mm == &init_mm); in pmd_populate()
|
| /linux-6.15/arch/powerpc/mm/book3s64/ |
| 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 | pgtable.c | 206 VM_BUG_ON(addr & ~HPAGE_PMD_MASK); in pmdp_huge_get_and_clear_full() 207 VM_BUG_ON((pmd_present(*pmdp) && !pmd_trans_huge(*pmdp) && in pmdp_huge_get_and_clear_full() 225 VM_BUG_ON(addr & ~HPAGE_PMD_MASK); in pudp_huge_get_and_clear_full() 226 VM_BUG_ON((pud_present(*pudp) && !pud_devmap(*pudp)) || in pudp_huge_get_and_clear_full()
|
| H A D | slice.c | 469 VM_BUG_ON(radix_enabled()); in slice_get_unmapped_area() 697 VM_BUG_ON(radix_enabled()); in get_slice_psize() 762 VM_BUG_ON(radix_enabled()); in slice_set_range_psize() 794 VM_BUG_ON(radix_enabled()); in slice_is_hugepage_only_range()
|
| /linux-6.15/fs/ |
| H 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() 605 VM_BUG_ON(atomic_read(&ctx->mmap_changing) < 0); in userfaultfd_event_wait_completion() 713 VM_BUG_ON(atomic_read(&octx->mmap_changing) < 0); in dup_userfaultfd_fail() [all …]
|
| /linux-6.15/drivers/misc/ |
| H 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-6.15/drivers/media/common/videobuf2/ |
| H A D | frame_vector.c | 194 VM_BUG_ON(vec->nr_frames > 0); in frame_vector_destroy()
|
| /linux-6.15/arch/x86/mm/ |
| H A D | pgtable.c | 480 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_set_access_flags() 500 VM_BUG_ON(address & ~HPAGE_PUD_MASK); in pudp_set_access_flags() 581 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_clear_flush_young()
|
| /linux-6.15/arch/s390/include/asm/ |
| H A D | mmu_context.h | 44 VM_BUG_ON(mm->context.asce_limit); in init_new_context()
|
| /linux-6.15/arch/arm/mm/ |
| H A D | mmap.c | 137 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area_topdown()
|
| /linux-6.15/arch/s390/mm/ |
| H A D | pgalloc.c | 56 VM_BUG_ON(asce_limit < _REGION2_SIZE); in crst_table_upgrade() 83 VM_BUG_ON(asce_limit != mm->context.asce_limit); in crst_table_upgrade()
|
| /linux-6.15/arch/sh/mm/ |
| H A D | mmap.c | 156 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area_topdown()
|