Home
last modified time | relevance | path

Searched refs:VM_BUG_ON (Results 1 – 25 of 90) sorted by relevance

1234

/linux-6.1.9/mm/
Dfrontswap.c114 VM_BUG_ON(sis == NULL); in frontswap_init()
171 VM_BUG_ON(!frontswap_ops); in __frontswap_store()
172 VM_BUG_ON(!PageLocked(page)); in __frontswap_store()
173 VM_BUG_ON(sis == NULL); in __frontswap_store()
210 VM_BUG_ON(!frontswap_ops); in __frontswap_load()
211 VM_BUG_ON(!PageLocked(page)); in __frontswap_load()
212 VM_BUG_ON(sis == NULL); in __frontswap_load()
232 VM_BUG_ON(!frontswap_ops); in __frontswap_invalidate_page()
233 VM_BUG_ON(sis == NULL); in __frontswap_invalidate_page()
251 VM_BUG_ON(!frontswap_ops); in __frontswap_invalidate_area()
[all …]
Dpgtable-generic.c111 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_set_access_flags()
125 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_clear_flush_young()
138 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_huge_clear_flush()
139 VM_BUG_ON(pmd_present(*pmdp) && !pmd_trans_huge(*pmdp) && in pmdp_huge_clear_flush()
152 VM_BUG_ON(address & ~HPAGE_PUD_MASK); in pudp_huge_clear_flush()
153 VM_BUG_ON(!pud_trans_huge(*pudp) && !pud_devmap(*pudp)); in pudp_huge_clear_flush()
222 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_collapse_flush()
223 VM_BUG_ON(pmd_trans_huge(*pmdp)); in pmdp_collapse_flush()
Dksm.c347 VM_BUG_ON(is_stable_node_dup(dup)); in stable_node_chain_add_dup()
349 VM_BUG_ON(!is_stable_node_chain(chain)); in stable_node_chain_add_dup()
356 VM_BUG_ON(!is_stable_node_dup(dup)); in __stable_node_dup_del()
363 VM_BUG_ON(is_stable_node_chain(dup)); in stable_node_dup_del()
404 VM_BUG_ON(stable_node->rmap_hlist_len && in free_stable_node()
563 VM_BUG_ON(is_stable_node_chain(dup)); in alloc_stable_node_chain()
615 VM_BUG_ON(stable_node->rmap_hlist_len <= 0); in remove_node_from_stable_tree()
765 VM_BUG_ON(stable_node->rmap_hlist_len <= 0); in remove_rmap_item_from_tree()
899 VM_BUG_ON(is_stable_node_dup(stable_node)); in remove_stable_node_chain()
908 VM_BUG_ON(!is_stable_node_dup(dup)); in remove_stable_node_chain()
[all …]
Dpage_isolation.c40 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()
Dkhugepaged.c979 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in collapse_huge_page()
1135 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in hpage_collapse_scan_pmd()
1349 VM_BUG_ON(addr & ~HPAGE_PMD_MASK); in khugepaged_add_pte_mapped_thp()
1373 VM_BUG_ON(!PageTransHuge(hpage)); in set_huge_pmd()
1759 VM_BUG_ON(!IS_ENABLED(CONFIG_READ_ONLY_THP_FOR_FS) && !is_shmem); in collapse_file()
1760 VM_BUG_ON(start & (HPAGE_PMD_NR - 1)); in collapse_file()
1798 VM_BUG_ON(index != xas.xa_index); in collapse_file()
2095 VM_BUG_ON(nr_none); in collapse_file()
2104 VM_BUG_ON(!list_empty(&pagelist)); in collapse_file()
2242 VM_BUG_ON(!pages); in khugepaged_scan_mm_slot()
[all …]
Dhuge_memory.c700 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in __do_huge_pmd_anonymous_page()
818 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in do_huge_pmd_anonymous_page()
1104 VM_BUG_ON(!is_pmd_migration_entry(pmd)); in copy_huge_pmd()
1316 VM_BUG_ON(unshare && (vmf->flags & FAULT_FLAG_WRITE)); in do_huge_pmd_wp_page()
1317 VM_BUG_ON(!unshare && !(vmf->flags & FAULT_FLAG_WRITE)); in do_huge_pmd_wp_page()
1577 VM_BUG_ON(thp_migration_supported() && in madvise_free_huge_pmd()
1675 VM_BUG_ON(!is_pmd_migration_entry(orig_pmd)); in zap_huge_pmd()
1737 VM_BUG_ON(pmd_trans_huge(*new_pmd)); in move_huge_pmd()
1753 VM_BUG_ON(!pmd_none(*new_pmd)); in move_huge_pmd()
1809 VM_BUG_ON(!is_pmd_migration_entry(*pmd)); in change_huge_pmd()
[all …]
Dcompaction.c2319 VM_BUG_ON(ret != COMPACT_CONTINUE); in compact_zone()
2480 VM_BUG_ON(free_pfn == 0); in compact_zone()
2534 VM_BUG_ON(!list_empty(&cc.freepages)); in compact_zone_order()
2535 VM_BUG_ON(!list_empty(&cc.migratepages)); in compact_zone_order()
2668 VM_BUG_ON(!list_empty(&cc.freepages)); in proactive_compact_node()
2669 VM_BUG_ON(!list_empty(&cc.migratepages)); in proactive_compact_node()
2698 VM_BUG_ON(!list_empty(&cc.freepages)); in compact_node()
2699 VM_BUG_ON(!list_empty(&cc.migratepages)); in compact_node()
2877 VM_BUG_ON(!list_empty(&cc.freepages)); in kcompactd_do_work()
2878 VM_BUG_ON(!list_empty(&cc.migratepages)); in kcompactd_do_work()
Dgup.c703 VM_BUG_ON(!thp_migration_supported() || in follow_pmd_mask()
950 VM_BUG_ON(pmd_trans_huge(*pmd)); in get_gate_page()
1006 VM_BUG_ON(fault_flags & FAULT_FLAG_WRITE); in faultin_page()
1176 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_vma_page_range()
1628 VM_BUG_ON(!PAGE_ALIGNED(end)); in faultin_vma_page_range()
2456 VM_BUG_ON(!pfn_valid(pte_pfn(pte))); in gup_pte_range()
2646 VM_BUG_ON(!pfn_valid(pte_pfn(pte))); in gup_hugepte()
Dhugetlb_vmemmap.c193 VM_BUG_ON(!PAGE_ALIGNED(start)); in vmemmap_remap_range()
194 VM_BUG_ON(!PAGE_ALIGNED(end)); in vmemmap_remap_range()
Dmremap.c100 VM_BUG_ON(pmd_trans_huge(*pmd)); in alloc_new_pmd()
273 VM_BUG_ON(!pmd_none(*new_pmd)); in move_normal_pmd()
322 VM_BUG_ON(!pud_none(*new_pud)); in move_normal_pud()
369 VM_BUG_ON(!pud_none(*new_pud)); in move_huge_pud()
/linux-6.1.9/include/linux/
Dmmdebug.h17 #define VM_BUG_ON(cond) BUG_ON(cond) macro
83 #define VM_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond) macro
84 #define VM_BUG_ON_PAGE(cond, page) VM_BUG_ON(cond)
85 #define VM_BUG_ON_FOLIO(cond, folio) VM_BUG_ON(cond)
86 #define VM_BUG_ON_VMA(cond, vma) VM_BUG_ON(cond)
87 #define VM_BUG_ON_MM(cond, mm) VM_BUG_ON(cond)
Dhighmem.h345 VM_BUG_ON(dst_off + len > PAGE_SIZE || src_off + len > PAGE_SIZE); in memcpy_page()
356 VM_BUG_ON(offset + len > PAGE_SIZE); in memset_page()
366 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_from_page()
376 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_to_page()
386 VM_BUG_ON(offset + len > PAGE_SIZE); in memzero_page()
Dgfp.h136 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()
Dpage_ref.h275 VM_BUG_ON(!in_atomic() && !irqs_disabled()); in folio_ref_try_add_rcu()
333 VM_BUG_ON(count == 0); in page_ref_unfreeze()
/linux-6.1.9/arch/arm64/include/asm/
Dpgalloc.h79 VM_BUG_ON(mm && mm != &init_mm); in pmd_populate_kernel()
86 VM_BUG_ON(mm == &init_mm); in pmd_populate()
/linux-6.1.9/arch/powerpc/mm/book3s64/
Dhash_pgtable.c228 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()
Dslice.c469 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()
Dpgtable.c136 VM_BUG_ON(addr & ~HPAGE_PMD_MASK); in pmdp_huge_get_and_clear_full()
137 VM_BUG_ON((pmd_present(*pmdp) && !pmd_trans_huge(*pmdp) && in pmdp_huge_get_and_clear_full()
/linux-6.1.9/fs/
Duserfaultfd.c187 VM_BUG_ON(spin_is_locked(&ctx->fault_pending_wqh.lock)); in userfaultfd_ctx_put()
188 VM_BUG_ON(waitqueue_active(&ctx->fault_pending_wqh)); in userfaultfd_ctx_put()
189 VM_BUG_ON(spin_is_locked(&ctx->fault_wqh.lock)); in userfaultfd_ctx_put()
190 VM_BUG_ON(waitqueue_active(&ctx->fault_wqh)); in userfaultfd_ctx_put()
191 VM_BUG_ON(spin_is_locked(&ctx->event_wqh.lock)); in userfaultfd_ctx_put()
192 VM_BUG_ON(waitqueue_active(&ctx->event_wqh)); in userfaultfd_ctx_put()
193 VM_BUG_ON(spin_is_locked(&ctx->fd_wqh.lock)); in userfaultfd_ctx_put()
194 VM_BUG_ON(waitqueue_active(&ctx->fd_wqh)); in userfaultfd_ctx_put()
428 VM_BUG_ON(reason & ~__VM_UFFD_FLAGS); in handle_userfault()
430 VM_BUG_ON(!reason || (reason & (reason - 1))); in handle_userfault()
[all …]
/linux-6.1.9/arch/x86/include/asm/
Dcmpxchg.h243 VM_BUG_ON((unsigned long)(p1) % (2 * sizeof(long))); \
244 VM_BUG_ON((unsigned long)((p1) + 1) != (unsigned long)(p2)); \
/linux-6.1.9/drivers/misc/
Dvmw_balloon.c1116 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()
/linux-6.1.9/arch/x86/mm/
Dpgtable.c505 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_set_access_flags()
525 VM_BUG_ON(address & ~HPAGE_PUD_MASK); in pudp_set_access_flags()
606 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_clear_flush_young()
/linux-6.1.9/arch/arm64/kvm/
Dmmu.c654 VM_BUG_ON(ret); in get_user_mapping_size()
655 VM_BUG_ON(level >= KVM_PGTABLE_MAX_LEVELS); in get_user_mapping_size()
656 VM_BUG_ON(!(pte & PTE_VALID)); in get_user_mapping_size()
1064 VM_BUG_ON(is_vm_hugetlb_page(vma)); in get_vma_page_shift()
1148 VM_BUG_ON(write_fault && exec_fault); in user_mem_abort()
1493 VM_BUG_ON(fault_ipa >= kvm_phys_size(vcpu->kvm)); in kvm_handle_guest_abort()
/linux-6.1.9/drivers/media/common/videobuf2/
Dframe_vector.c188 VM_BUG_ON(vec->nr_frames > 0); in frame_vector_destroy()
/linux-6.1.9/arch/s390/include/asm/
Dcmpxchg.h198 VM_BUG_ON((unsigned long)((__p1) + 1) != (unsigned long)(__p2));\

1234