Home
last modified time | relevance | path

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

1234

/linux/mm/
A Dfrontswap.c199 VM_BUG_ON(sis == NULL); in __frontswap_init()
258 VM_BUG_ON(!frontswap_ops); in __frontswap_store()
259 VM_BUG_ON(!PageLocked(page)); in __frontswap_store()
260 VM_BUG_ON(sis == NULL); in __frontswap_store()
307 VM_BUG_ON(!frontswap_ops); in __frontswap_load()
308 VM_BUG_ON(!PageLocked(page)); in __frontswap_load()
309 VM_BUG_ON(sis == NULL); in __frontswap_load()
340 VM_BUG_ON(!frontswap_ops); in __frontswap_invalidate_page()
341 VM_BUG_ON(sis == NULL); in __frontswap_invalidate_page()
362 VM_BUG_ON(!frontswap_ops); in __frontswap_invalidate_area()
[all …]
A Dpgtable-generic.c110 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_set_access_flags()
124 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_clear_flush_young()
137 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_huge_clear_flush()
138 VM_BUG_ON(pmd_present(*pmdp) && !pmd_trans_huge(*pmdp) && in pmdp_huge_clear_flush()
151 VM_BUG_ON(address & ~HPAGE_PUD_MASK); in pudp_huge_clear_flush()
152 VM_BUG_ON(!pud_trans_huge(*pudp) && !pud_devmap(*pudp)); in pudp_huge_clear_flush()
213 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_collapse_flush()
214 VM_BUG_ON(pmd_trans_huge(*pmdp)); in pmdp_collapse_flush()
A Dksm.c349 VM_BUG_ON(is_stable_node_dup(dup)); in stable_node_chain_add_dup()
351 VM_BUG_ON(!is_stable_node_chain(chain)); in stable_node_chain_add_dup()
358 VM_BUG_ON(!is_stable_node_dup(dup)); in __stable_node_dup_del()
365 VM_BUG_ON(is_stable_node_chain(dup)); in stable_node_dup_del()
405 VM_BUG_ON(stable_node->rmap_hlist_len && in free_stable_node()
591 VM_BUG_ON(is_stable_node_chain(dup)); in alloc_stable_node_chain()
920 VM_BUG_ON(is_stable_node_dup(stable_node)); in remove_stable_node_chain()
929 VM_BUG_ON(!is_stable_node_dup(dup)); in remove_stable_node_chain()
1337 VM_BUG_ON(stable_node->rmap_hlist_len < 0); in __is_page_sharing_candidate()
1538 VM_BUG_ON(s_n != old_stable_node); in chain()
[all …]
A Dkhugepaged.c958 VM_BUG_ON(!*hpage); in khugepaged_alloc_page()
1075 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in collapse_huge_page()
1237 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in khugepaged_scan_pmd()
1412 VM_BUG_ON(addr & ~HPAGE_PMD_MASK); in khugepaged_add_pte_mapped_thp()
1653 VM_BUG_ON(start & (HPAGE_PMD_NR - 1)); in collapse_file()
1699 VM_BUG_ON(index != xas.xa_index); in collapse_file()
1976 VM_BUG_ON(nr_none); in collapse_file()
1984 VM_BUG_ON(!list_empty(&pagelist)); in collapse_file()
2087 VM_BUG_ON(!pages); in khugepaged_scan_mm_slot()
2144 VM_BUG_ON(khugepaged_scan.address < hstart || in khugepaged_scan_mm_slot()
[all …]
A Dzsmalloc.c743 VM_BUG_ON(list_empty(&class->fullness_list[fullness])); in remove_zspage()
744 VM_BUG_ON(is_zspage_isolated(zspage)); in remove_zspage()
939 VM_BUG_ON(get_zspage_inuse(zspage)); in __free_zspage()
940 VM_BUG_ON(fg != ZS_EMPTY); in __free_zspage()
963 VM_BUG_ON(get_zspage_inuse(zspage)); in free_zspage()
964 VM_BUG_ON(list_empty(&zspage->list)); in free_zspage()
1709 VM_BUG_ON(is_zspage_isolated(zspage)); in isolate_zspage()
1730 VM_BUG_ON(is_zspage_isolated(zspage)); in putback_zspage()
1830 VM_BUG_ON(atomic_long_read(&pool->isolated_pages) <= 0); in zs_pool_dec_isolated()
2163 VM_BUG_ON(fullness != ZS_EMPTY); in async_free_zspage()
A Dhuge_memory.c644 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in __do_huge_pmd_anonymous_page()
763 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in do_huge_pmd_anonymous_page()
1056 VM_BUG_ON(!is_pmd_migration_entry(pmd)); in copy_huge_pmd()
1521 VM_BUG_ON(thp_migration_supported() && in madvise_free_huge_pmd()
1681 VM_BUG_ON(pmd_trans_huge(*new_pmd)); in move_huge_pmd()
1697 VM_BUG_ON(!pmd_none(*new_pmd)); in move_huge_pmd()
1749 VM_BUG_ON(!is_pmd_migration_entry(*pmd)); in change_huge_pmd()
1889 VM_BUG_ON(haddr & ~HPAGE_PUD_MASK); in __split_huge_pud_locked()
1950 VM_BUG_ON(!pte_none(*pte)); in __split_huge_zero_page_pmd()
1969 VM_BUG_ON(haddr & ~HPAGE_PMD_MASK); in __split_huge_pmd_locked()
[all …]
A Dcompaction.c2303 VM_BUG_ON(ret != COMPACT_CONTINUE); in compact_zone()
2466 VM_BUG_ON(free_pfn == 0); in compact_zone()
2521 VM_BUG_ON(!list_empty(&cc.freepages)); in compact_zone_order()
2522 VM_BUG_ON(!list_empty(&cc.migratepages)); in compact_zone_order()
2655 VM_BUG_ON(!list_empty(&cc.freepages)); in proactive_compact_node()
2656 VM_BUG_ON(!list_empty(&cc.migratepages)); in proactive_compact_node()
2685 VM_BUG_ON(!list_empty(&cc.freepages)); in compact_node()
2686 VM_BUG_ON(!list_empty(&cc.migratepages)); in compact_node()
2864 VM_BUG_ON(!list_empty(&cc.freepages)); in kcompactd_do_work()
2865 VM_BUG_ON(!list_empty(&cc.migratepages)); in kcompactd_do_work()
A Dmremap.c98 VM_BUG_ON(pmd_trans_huge(*pmd)); in alloc_new_pmd()
271 VM_BUG_ON(!pmd_none(*new_pmd)); in move_normal_pmd()
320 VM_BUG_ON(!pud_none(*new_pud)); in move_normal_pud()
367 VM_BUG_ON(!pud_none(*new_pud)); in move_huge_pud()
A Dgup.c647 VM_BUG_ON(thp_migration_supported() && in follow_pmd_mask()
883 VM_BUG_ON(pmd_trans_huge(*pmd)); in get_gate_page()
1095 VM_BUG_ON(!!pages != !!(gup_flags & (FOLL_GET | FOLL_PIN))); in __get_user_pages()
1464 VM_BUG_ON(!PAGE_ALIGNED(start)); in populate_vma_page_range()
1465 VM_BUG_ON(!PAGE_ALIGNED(end)); in populate_vma_page_range()
1526 VM_BUG_ON(!PAGE_ALIGNED(start)); in faultin_vma_page_range()
1527 VM_BUG_ON(!PAGE_ALIGNED(end)); in faultin_vma_page_range()
2297 VM_BUG_ON(!pfn_valid(pte_pfn(pte))); in gup_pte_range()
2482 VM_BUG_ON(!pfn_valid(pte_pfn(pte))); in gup_hugepte()
/linux/include/linux/
A Dmmdebug.h17 #define VM_BUG_ON(cond) BUG_ON(cond) macro
74 #define VM_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond) macro
75 #define VM_BUG_ON_PAGE(cond, page) VM_BUG_ON(cond)
76 #define VM_BUG_ON_FOLIO(cond, folio) VM_BUG_ON(cond)
77 #define VM_BUG_ON_VMA(cond, vma) VM_BUG_ON(cond)
78 #define VM_BUG_ON_MM(cond, mm) VM_BUG_ON(cond)
A Dhighmem.h308 VM_BUG_ON(dst_off + len > PAGE_SIZE || src_off + len > PAGE_SIZE); in memcpy_page()
321 VM_BUG_ON(dst_off + len > PAGE_SIZE || src_off + len > PAGE_SIZE); in memmove_page()
332 VM_BUG_ON(offset + len > PAGE_SIZE); in memset_page()
342 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_from_page()
352 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_to_page()
A Dgfp.h483 VM_BUG_ON((GFP_ZONE_BAD >> bit) & 1); in gfp_zone()
567 VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); in __alloc_pages_node()
576 VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); in __folio_alloc_node()
A 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()
A Dpercpu-defs.h359 VM_BUG_ON((unsigned long)(&(pcp1)) % (2 * sizeof(pcp1))); \
360 VM_BUG_ON((unsigned long)(&(pcp2)) != \
/linux/arch/arm64/include/asm/
A Dpgalloc.h79 VM_BUG_ON(mm && mm != &init_mm); in pmd_populate_kernel()
86 VM_BUG_ON(mm == &init_mm); in pmd_populate()
/linux/fs/
A Duserfaultfd.c170 VM_BUG_ON(waitqueue_active(&ctx->fault_pending_wqh)); in userfaultfd_ctx_put()
171 VM_BUG_ON(spin_is_locked(&ctx->fault_wqh.lock)); in userfaultfd_ctx_put()
172 VM_BUG_ON(waitqueue_active(&ctx->fault_wqh)); in userfaultfd_ctx_put()
173 VM_BUG_ON(spin_is_locked(&ctx->event_wqh.lock)); in userfaultfd_ctx_put()
174 VM_BUG_ON(waitqueue_active(&ctx->event_wqh)); in userfaultfd_ctx_put()
175 VM_BUG_ON(spin_is_locked(&ctx->fd_wqh.lock)); in userfaultfd_ctx_put()
176 VM_BUG_ON(waitqueue_active(&ctx->fd_wqh)); in userfaultfd_ctx_put()
403 VM_BUG_ON(reason & ~__VM_UFFD_FLAGS); in handle_userfault()
405 VM_BUG_ON(!reason || (reason & (reason - 1))); in handle_userfault()
628 VM_BUG_ON(atomic_read(&ctx->mmap_changing) < 0); in userfaultfd_event_wait_completion()
[all …]
/linux/arch/powerpc/mm/book3s64/
A 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()
A Dpgtable.c127 VM_BUG_ON(addr & ~HPAGE_PMD_MASK); in pmdp_huge_get_and_clear_full()
128 VM_BUG_ON((pmd_present(*pmdp) && !pmd_trans_huge(*pmdp) && in pmdp_huge_get_and_clear_full()
/linux/arch/x86/include/asm/
A Dcmpxchg.h243 VM_BUG_ON((unsigned long)(p1) % (2 * sizeof(long))); \
244 VM_BUG_ON((unsigned long)((p1) + 1) != (unsigned long)(p2)); \
/linux/arch/powerpc/mm/
A Dslice.c473 VM_BUG_ON(radix_enabled()); in slice_get_unmapped_area()
667 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/drivers/misc/
A Dvmw_balloon.c1118 VM_BUG_ON(!list_empty(&ctl.pages)); in vmballoon_inflate()
1119 VM_BUG_ON(ctl.n_pages != 0); in vmballoon_inflate()
1211 VM_BUG_ON(!list_empty(&ctl.pages)); in vmballoon_deflate()
1212 VM_BUG_ON(ctl.n_pages); in vmballoon_deflate()
1213 VM_BUG_ON(!list_empty(&ctl.refused_pages)); in vmballoon_deflate()
1214 VM_BUG_ON(ctl.n_refused_pages); in vmballoon_deflate()
/linux/arch/arm64/kvm/
A Dmmu.c476 VM_BUG_ON(ret); in get_user_mapping_size()
477 VM_BUG_ON(level >= KVM_PGTABLE_MAX_LEVELS); in get_user_mapping_size()
478 VM_BUG_ON(!(pte & PTE_VALID)); in get_user_mapping_size()
884 VM_BUG_ON(is_vm_hugetlb_page(vma)); in get_vma_page_shift()
967 VM_BUG_ON(write_fault && exec_fault); in user_mem_abort()
1278 VM_BUG_ON(fault_ipa >= kvm_phys_size(vcpu->kvm)); in kvm_handle_guest_abort()
/linux/arch/x86/mm/
A 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()
603 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_clear_flush_young()
/linux/arch/s390/include/asm/
A Dcmpxchg.h198 VM_BUG_ON((unsigned long)((__p1) + 1) != (unsigned long)(__p2));\
/linux/arch/sh/mm/
A Dmmap.c136 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area_topdown()

Completed in 84 milliseconds

1234