Home
last modified time | relevance | path

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

1234

/Linux-v4.19/mm/
Dfrontswap.c196 VM_BUG_ON(sis == NULL); in __frontswap_init()
255 VM_BUG_ON(!frontswap_ops); in __frontswap_store()
256 VM_BUG_ON(!PageLocked(page)); in __frontswap_store()
257 VM_BUG_ON(sis == NULL); in __frontswap_store()
304 VM_BUG_ON(!frontswap_ops); in __frontswap_load()
305 VM_BUG_ON(!PageLocked(page)); in __frontswap_load()
306 VM_BUG_ON(sis == NULL); in __frontswap_load()
337 VM_BUG_ON(!frontswap_ops); in __frontswap_invalidate_page()
338 VM_BUG_ON(sis == NULL); in __frontswap_invalidate_page()
359 VM_BUG_ON(!frontswap_ops); in __frontswap_invalidate_area()
[all …]
Dpgtable-generic.c100 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_set_access_flags()
114 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_clear_flush_young()
127 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_huge_clear_flush()
128 VM_BUG_ON((pmd_present(*pmdp) && !pmd_trans_huge(*pmdp) && in pmdp_huge_clear_flush()
141 VM_BUG_ON(address & ~HPAGE_PUD_MASK); in pudp_huge_clear_flush()
142 VM_BUG_ON(!pud_trans_huge(*pudp) && !pud_devmap(*pudp)); in pudp_huge_clear_flush()
203 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_collapse_flush()
204 VM_BUG_ON(pmd_trans_huge(*pmdp)); in pmdp_collapse_flush()
Dksm.c351 VM_BUG_ON(is_stable_node_dup(dup)); in stable_node_chain_add_dup()
353 VM_BUG_ON(!is_stable_node_chain(chain)); in stable_node_chain_add_dup()
360 VM_BUG_ON(!is_stable_node_dup(dup)); in __stable_node_dup_del()
367 VM_BUG_ON(is_stable_node_chain(dup)); in stable_node_dup_del()
407 VM_BUG_ON(stable_node->rmap_hlist_len && in free_stable_node()
594 VM_BUG_ON(is_stable_node_chain(dup)); in alloc_stable_node_chain()
643 VM_BUG_ON(stable_node->rmap_hlist_len <= 0); in remove_node_from_stable_tree()
777 VM_BUG_ON(stable_node->rmap_hlist_len <= 0); in remove_rmap_item_from_tree()
905 VM_BUG_ON(is_stable_node_dup(stable_node)); in remove_stable_node_chain()
914 VM_BUG_ON(!is_stable_node_dup(dup)); in remove_stable_node_chain()
[all …]
Dkhugepaged.c835 VM_BUG_ON(!*hpage); in khugepaged_alloc_page()
951 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in collapse_huge_page()
1113 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in khugepaged_scan_pmd()
1228 VM_BUG_ON(NR_CPUS != 1 && !spin_is_locked(&khugepaged_mm_lock)); in collect_mm_slot()
1317 VM_BUG_ON(start & (HPAGE_PMD_NR - 1)); in collapse_shmem()
1553 VM_BUG_ON(nr_none); in collapse_shmem()
1563 VM_BUG_ON(!list_empty(&pagelist)); in collapse_shmem()
1667 VM_BUG_ON(!pages); in khugepaged_scan_mm_slot()
1668 VM_BUG_ON(NR_CPUS != 1 && !spin_is_locked(&khugepaged_mm_lock)); in khugepaged_scan_mm_slot()
1713 VM_BUG_ON(khugepaged_scan.address & ~HPAGE_PMD_MASK); in khugepaged_scan_mm_slot()
[all …]
Dcompaction.c1551 VM_BUG_ON(ret != COMPACT_CONTINUE); in compact_zone()
1680 VM_BUG_ON(free_pfn == 0); in compact_zone()
1727 VM_BUG_ON(!list_empty(&cc.freepages)); in compact_zone_order()
1728 VM_BUG_ON(!list_empty(&cc.migratepages)); in compact_zone_order()
1845 VM_BUG_ON(!list_empty(&cc.freepages)); in compact_node()
1846 VM_BUG_ON(!list_empty(&cc.migratepages)); in compact_node()
2010 VM_BUG_ON(!list_empty(&cc.freepages)); in kcompactd_do_work()
2011 VM_BUG_ON(!list_empty(&cc.migratepages)); in kcompactd_do_work()
Dhuge_memory.c594 VM_BUG_ON(ret2 & VM_FAULT_FALLBACK); in __do_huge_pmd_anonymous_page()
705 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in do_huge_pmd_anonymous_page()
928 VM_BUG_ON(!is_pmd_migration_entry(pmd)); in copy_huge_pmd()
1203 VM_BUG_ON(!pte_none(*vmf->pte)); in do_huge_pmd_wp_page_fallback()
1631 VM_BUG_ON(thp_migration_supported() && in madvise_free_huge_pmd()
1732 VM_BUG_ON(!is_pmd_migration_entry(orig_pmd)); in zap_huge_pmd()
1800 VM_BUG_ON(pmd_trans_huge(*new_pmd)); in move_huge_pmd()
1816 VM_BUG_ON(!pmd_none(*new_pmd)); in move_huge_pmd()
1861 VM_BUG_ON(!is_pmd_migration_entry(*pmd)); in change_huge_pmd()
1989 VM_BUG_ON(haddr & ~HPAGE_PUD_MASK); in __split_huge_pud_locked()
[all …]
Dpagewalk.c349 VM_BUG_ON(!rwsem_is_locked(&walk->mm->mmap_sem)); in walk_page_vma()
350 VM_BUG_ON(!vma); in walk_page_vma()
Dzsmalloc.c763 VM_BUG_ON(list_empty(&class->fullness_list[fullness])); in remove_zspage()
764 VM_BUG_ON(is_zspage_isolated(zspage)); in remove_zspage()
959 VM_BUG_ON(get_zspage_inuse(zspage)); in __free_zspage()
960 VM_BUG_ON(fg != ZS_EMPTY); in __free_zspage()
983 VM_BUG_ON(get_zspage_inuse(zspage)); in free_zspage()
984 VM_BUG_ON(list_empty(&zspage->list)); in free_zspage()
1773 VM_BUG_ON(is_zspage_isolated(zspage)); in isolate_zspage()
1794 VM_BUG_ON(is_zspage_isolated(zspage)); in putback_zspage()
2167 VM_BUG_ON(fullness != ZS_EMPTY); in async_free_zspage()
/Linux-v4.19/arch/mips/mm/
Dgup.c51 VM_BUG_ON(!pfn_valid(pte_pfn(pte))); in gup_pte_range()
66 VM_BUG_ON(page != compound_head(page)); in get_head_page_multiple()
67 VM_BUG_ON(page_count(page) == 0); in get_head_page_multiple()
82 VM_BUG_ON(pte_special(pte)); in gup_huge_pmd()
83 VM_BUG_ON(!pfn_valid(pte_pfn(pte))); in gup_huge_pmd()
89 VM_BUG_ON(compound_head(page) != head); in gup_huge_pmd()
135 VM_BUG_ON(pte_special(pte)); in gup_huge_pud()
136 VM_BUG_ON(!pfn_valid(pte_pfn(pte))); in gup_huge_pud()
142 VM_BUG_ON(compound_head(page) != head); in gup_huge_pud()
282 VM_BUG_ON(nr != (end - start) >> PAGE_SHIFT); in get_user_pages_fast()
/Linux-v4.19/include/linux/
Dmmdebug.h18 #define VM_BUG_ON(cond) BUG_ON(cond) macro
45 #define VM_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond) macro
46 #define VM_BUG_ON_PAGE(cond, page) VM_BUG_ON(cond)
47 #define VM_BUG_ON_VMA(cond, vma) VM_BUG_ON(cond)
48 #define VM_BUG_ON_MM(cond, mm) VM_BUG_ON(cond)
Dpagemap.h171 VM_BUG_ON(!in_atomic() && !irqs_disabled()); in page_cache_get_speculative()
205 VM_BUG_ON(in_interrupt()); in page_cache_add_speculative()
209 VM_BUG_ON(!in_atomic() && !irqs_disabled()); in page_cache_add_speculative()
Dgfp.h425 VM_BUG_ON((GFP_ZONE_BAD >> bit) & 1); in gfp_zone()
483 VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); in __alloc_pages_node()
/Linux-v4.19/arch/sparc/mm/
Dgup.c46 VM_BUG_ON(!pfn_valid(pte_pfn(pte))); in gup_pte_range()
86 VM_BUG_ON(compound_head(page) != head); in gup_huge_pmd()
125 VM_BUG_ON(compound_head(page) != head); in gup_huge_pud()
312 VM_BUG_ON(nr != (end - start) >> PAGE_SHIFT); in get_user_pages_fast()
/Linux-v4.19/arch/s390/mm/
Dgup.c39 VM_BUG_ON(!pfn_valid(pte_pfn(pte))); in gup_pte_range()
67 VM_BUG_ON(!pfn_valid(pmd_val(pmd) >> PAGE_SHIFT)); in gup_huge_pmd()
73 VM_BUG_ON(compound_head(page) != head); in gup_huge_pmd()
141 VM_BUG_ON(!pfn_valid(pud_pfn(pud))); in gup_huge_pud()
/Linux-v4.19/fs/
Duserfaultfd.c158 VM_BUG_ON(spin_is_locked(&ctx->fault_pending_wqh.lock)); in userfaultfd_ctx_put()
159 VM_BUG_ON(waitqueue_active(&ctx->fault_pending_wqh)); in userfaultfd_ctx_put()
160 VM_BUG_ON(spin_is_locked(&ctx->fault_wqh.lock)); in userfaultfd_ctx_put()
161 VM_BUG_ON(waitqueue_active(&ctx->fault_wqh)); in userfaultfd_ctx_put()
162 VM_BUG_ON(spin_is_locked(&ctx->event_wqh.lock)); in userfaultfd_ctx_put()
163 VM_BUG_ON(waitqueue_active(&ctx->event_wqh)); in userfaultfd_ctx_put()
164 VM_BUG_ON(spin_is_locked(&ctx->fd_wqh.lock)); in userfaultfd_ctx_put()
165 VM_BUG_ON(waitqueue_active(&ctx->fd_wqh)); in userfaultfd_ctx_put()
228 VM_BUG_ON(!rwsem_is_locked(&mm->mmap_sem)); in userfaultfd_huge_must_wait()
280 VM_BUG_ON(!rwsem_is_locked(&mm->mmap_sem)); in userfaultfd_must_wait()
[all …]
/Linux-v4.19/arch/powerpc/mm/
Dpgtable-hash64.c225 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in hash__pmdp_collapse_flush()
226 VM_BUG_ON(pmd_trans_huge(*pmdp)); in hash__pmdp_collapse_flush()
227 VM_BUG_ON(pmd_devmap(*pmdp)); in hash__pmdp_collapse_flush()
Dslice.c512 VM_BUG_ON(radix_enabled()); in slice_get_unmapped_area()
707 VM_BUG_ON(radix_enabled()); in get_slice_psize()
765 VM_BUG_ON(radix_enabled()); in slice_set_range_psize()
797 VM_BUG_ON(radix_enabled()); in slice_is_hugepage_only_range()
/Linux-v4.19/arch/sh/mm/
Dgup.c106 VM_BUG_ON(!pfn_valid(pte_pfn(pte))); in gup_pte_range()
250 VM_BUG_ON(nr != (end - start) >> PAGE_SHIFT); in get_user_pages_fast()
Dmmap.c136 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area_topdown()
/Linux-v4.19/arch/arm/include/asm/
Dkvm_mmu.h170 VM_BUG_ON(size & ~PAGE_MASK); in __clean_dcache_guest_page()
202 VM_BUG_ON(size & ~PAGE_MASK); in __invalidate_icache_guest_page()
/Linux-v4.19/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-v4.19/arch/s390/include/asm/
Dcmpxchg.h60 VM_BUG_ON((unsigned long)((__p1) + 1) != (unsigned long)(__p2));\
/Linux-v4.19/virt/kvm/arm/
Dmmu.c163 VM_BUG_ON(stage2_pud_huge(*pud)); in clear_stage2_pud_entry()
173 VM_BUG_ON(pmd_thp_or_huge(*pmd)); in clear_stage2_pmd_entry()
454 VM_BUG_ON(pud_huge(*pud)); in clear_hyp_pud_entry()
463 VM_BUG_ON(pmd_thp_or_huge(*pmd)); in clear_hyp_pmd_entry()
1045 VM_BUG_ON(!pmd); in stage2_set_pmd_huge()
1074 VM_BUG_ON(pmd_pfn(old_pmd) != pmd_pfn(*new_pmd)); in stage2_set_pmd_huge()
1114 VM_BUG_ON(logging_active && !cache); in stage2_set_pte()
1255 VM_BUG_ON((gfn & mask) != (pfn & mask)); in transparent_hugepage_adjust()
1487 VM_BUG_ON(write_fault && exec_fault); in user_mem_abort()
1766 VM_BUG_ON(fault_ipa >= KVM_PHYS_SIZE); in kvm_handle_guest_abort()
/Linux-v4.19/arch/arm64/include/asm/
Dkvm_mmu.h358 VM_BUG_ON(pgd_val(merged_hyp_pgd[0]));
369 VM_BUG_ON(pgd_val(merged_hyp_pgd[idmap_idx]));
/Linux-v4.19/arch/x86/mm/
Dpgtable.c515 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_set_access_flags()
535 VM_BUG_ON(address & ~HPAGE_PUD_MASK); in pudp_set_access_flags()
613 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_clear_flush_young()

1234