Home
last modified time | relevance | path

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

123

/linux/mm/
H A Dpgtable-generic.c116 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_set_access_flags()
130 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_clear_flush_young()
143 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_huge_clear_flush()
144 VM_BUG_ON(pmd_present(*pmdp) && !pmd_trans_huge(*pmdp)); in pmdp_huge_clear_flush()
156 VM_BUG_ON(address & ~HPAGE_PUD_MASK); in pudp_huge_clear_flush()
157 VM_BUG_ON(!pud_trans_huge(*pudp)); in pudp_huge_clear_flush()
228 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_collapse_flush()
229 VM_BUG_ON(pmd_trans_huge(*pmdp)); in pmdp_collapse_flush()
H A Dhugetlb_internal.h34 VM_BUG_ON(nid >= MAX_NUMNODES); in next_node_allowed()
57 VM_BUG_ON(!nodes_allowed); in hstate_next_node_to_alloc()
75 VM_BUG_ON(!nodes_allowed); in hstate_next_node_to_free()
H A Dksm.c535 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()
842 VM_BUG_ON(is_stable_node_chain(dup)); in alloc_stable_node_chain()
896 VM_BUG_ON(stable_node->rmap_hlist_len <= 0); in remove_node_from_stable_tree()
1048 VM_BUG_ON(stable_node->rmap_hlist_len <= 0); in remove_rmap_item_from_tree()
1148 VM_BUG_ON(is_stable_node_dup(stable_node)); in remove_stable_node_chain()
1157 VM_BUG_ON(!is_stable_node_dup(dup)); in remove_stable_node_chain()
[all …]
H A Dkhugepaged.c1105 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in collapse_huge_page()
1262 VM_BUG_ON(start_addr & ~HPAGE_PMD_MASK); in hpage_collapse_scan_pmd()
1870 VM_BUG_ON(!IS_ENABLED(CONFIG_READ_ONLY_THP_FOR_FS) && !is_shmem); in collapse_file()
1871 VM_BUG_ON(start & (HPAGE_PMD_NR - 1)); in collapse_file()
1905 VM_BUG_ON(index != xas.xa_index); in collapse_file()
2283 VM_BUG_ON(!list_empty(&pagelist)); in collapse_file()
2406 VM_BUG_ON(!pages); in khugepaged_scan_mm_slot()
2453 VM_BUG_ON(khugepaged_scan.address & ~HPAGE_PMD_MASK); in khugepaged_scan_mm_slot()
2462 VM_BUG_ON(khugepaged_scan.address < hstart || in khugepaged_scan_mm_slot()
2514 VM_BUG_ON(khugepaged_scan.mm_slot != slot); in khugepaged_scan_mm_slot()
H A Dswapfile.c189 VM_BUG_ON(!(*map & SWAP_HAS_CACHE)); in swap_only_has_cache()
574 VM_BUG_ON(ci->flags == CLUSTER_FLAG_FREE); in swap_cluster_schedule_discard()
606 VM_BUG_ON(!ci->flags); in isolate_lock_cluster()
607 VM_BUG_ON(ci->flags > CLUSTER_FLAG_USABLE && in isolate_lock_cluster()
691 VM_BUG_ON(ci->count != 0); in free_cluster()
692 VM_BUG_ON(ci->flags == CLUSTER_FLAG_FREE); in free_cluster()
716 VM_BUG_ON(!ci->count || ci->count == SWAPFILE_CLUSTER); in partial_free_cluster()
1524 VM_BUG_ON(!has_cache); in swap_entry_put_locked()
1720 VM_BUG_ON(ci != __swap_offset_to_cluster(si, offset + nr_pages - 1)); in swap_entries_free()
1721 VM_BUG_ON(cluster_is_empty(ci)); in swap_entries_free()
[all …]
H A Dmremap.c138 VM_BUG_ON(pmd_trans_huge(*pmd)); in alloc_new_pmd()
407 VM_BUG_ON(!pmd_none(*new_pmd)); in move_normal_pmd()
459 VM_BUG_ON(!pud_none(*new_pud)); in move_normal_pud()
506 VM_BUG_ON(!pud_none(*new_pud)); in move_huge_pud()
1339 VM_BUG_ON(vrm->remap_type != MREMAP_SHRINK); in shrink_vma()
H A Dhugetlb.c474 VM_BUG_ON(resv->region_cache_count <= 0); in get_file_region_entry_from_cache()
524 VM_BUG_ON(resv->pages_per_hpage != pages_per_huge_page(h)); in record_hugetlb_cgroup_uncharge_info()
675 VM_BUG_ON(regions_needed < 0); in allocate_file_region_entries()
695 VM_BUG_ON(resv->region_cache_count < resv->adds_in_progress); in allocate_file_region_entries()
767 VM_BUG_ON(t - f <= 1); in region_add()
845 VM_BUG_ON(!resv->region_cache_count); in region_abort()
1162 VM_BUG_ON(resv_map->adds_in_progress); in resv_map_release()
2531 VM_BUG_ON(dummy_out_regions_needed != 1); in __vma_reservation_common()
2536 VM_BUG_ON(ret < 0); in __vma_reservation_common()
2546 VM_BUG_ON(ret < 0); in __vma_reservation_common()
[all …]
H A Dzsmalloc.c698 VM_BUG_ON(list_empty(&class->fullness_list[fullness])); in remove_zspage()
841 VM_BUG_ON(get_zspage_inuse(zspage)); in __free_zspage()
842 VM_BUG_ON(zspage->fullness != ZS_INUSE_RATIO_0); in __free_zspage()
864 VM_BUG_ON(get_zspage_inuse(zspage)); in free_zspage()
865 VM_BUG_ON(list_empty(&zspage->list)); in free_zspage()
H A Dhuge_memory.c1352 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in __do_huge_pmd_anonymous_page()
1498 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in do_huge_pmd_anonymous_page()
2282 VM_BUG_ON(thp_migration_supported() && in madvise_free_huge_pmd()
2475 VM_BUG_ON(pmd_trans_huge(*new_pmd)); in move_huge_pmd()
2491 VM_BUG_ON(!pmd_none(*new_pmd)); in move_huge_pmd()
2892 VM_BUG_ON(haddr & ~HPAGE_PUD_MASK); in __split_huge_pud_locked()
2895 VM_BUG_ON(!pud_trans_huge(*pud)); in __split_huge_pud_locked()
2967 VM_BUG_ON(!pte); in __split_huge_zero_page_pmd()
2975 VM_BUG_ON(!pte_none(ptep_get(pte))); in __split_huge_zero_page_pmd()
2998 VM_BUG_ON(haddr & ~HPAGE_PMD_MASK); in __split_huge_pmd_locked()
[all …]
H A Dmlock.c521 VM_BUG_ON(offset_in_page(start)); in apply_vma_lock_flags()
522 VM_BUG_ON(len != PAGE_ALIGN(len)); in apply_vma_lock_flags()
/linux/include/linux/
H A Dhighmem.h397 VM_BUG_ON(dst_off + len > PAGE_SIZE || src_off + len > PAGE_SIZE); in memcpy_page()
406 VM_BUG_ON(dst_off + len > folio_size(dst_folio)); in memcpy_folio()
407 VM_BUG_ON(src_off + len > folio_size(src_folio)); in memcpy_folio()
435 VM_BUG_ON(offset + len > PAGE_SIZE); in memset_page()
445 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_from_page()
455 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_to_page()
465 VM_BUG_ON(offset + len > PAGE_SIZE); in memzero_page()
481 VM_BUG_ON(offset + len > folio_size(folio)); in memcpy_from_folio()
509 VM_BUG_ON(offset + len > folio_size(folio)); in memcpy_to_folio()
584 VM_BUG_ON(offset + len > folio_size(folio)); in folio_fill_tail()
H A Dgfp.h159 VM_BUG_ON((GFP_ZONE_BAD >> bit) & 1); in gfp_zone()
282 VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); in __alloc_pages_node_noprof()
293 VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); in __folio_alloc_node_noprof()
H A Dpage_ref.h289 VM_BUG_ON(count == 0); in page_ref_unfreeze()
/linux/arch/riscv/mm/
H A Dpgtable.c142 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_collapse_flush()
143 VM_BUG_ON(pmd_trans_huge(pmdp_get(pmdp))); in pmdp_collapse_flush()
/linux/arch/powerpc/mm/book3s64/
H A Dpgtable.c205 VM_BUG_ON(addr & ~HPAGE_PMD_MASK); in pmdp_huge_get_and_clear_full()
206 VM_BUG_ON((pmd_present(*pmdp) && !pmd_trans_huge(*pmdp)) || in pmdp_huge_get_and_clear_full()
224 VM_BUG_ON(addr & ~HPAGE_PMD_MASK); in pudp_huge_get_and_clear_full()
225 VM_BUG_ON(!pud_present(*pudp)); in pudp_huge_get_and_clear_full()
H A Dradix_pgtable.c1006 VM_BUG_ON(!IS_ALIGNED(addr, PMD_SIZE)); in vmemmap_set_pmd()
1054 VM_BUG_ON(!PAGE_ALIGNED(addr)); in radix__vmemmap_pte_populate()
1469 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in radix__pmdp_collapse_flush()
1470 VM_BUG_ON(radix__pmd_trans_huge(*pmdp)); in radix__pmdp_collapse_flush()
/linux/drivers/misc/
H A Dvmw_balloon.c1107 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/arch/x86/mm/
H A Dpgtable.c410 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_set_access_flags()
430 VM_BUG_ON(address & ~HPAGE_PUD_MASK); in pudp_set_access_flags()
511 VM_BUG_ON(address & ~HPAGE_PMD_MASK); in pmdp_clear_flush_young()
H A Dinit_64.c1280 VM_BUG_ON(!PAGE_ALIGNED(start)); in vmemmap_free()
1281 VM_BUG_ON(!PAGE_ALIGNED(end)); in vmemmap_free()
1567 VM_BUG_ON(!PAGE_ALIGNED(start)); in vmemmap_populate()
1568 VM_BUG_ON(!PAGE_ALIGNED(end)); in vmemmap_populate()
/linux/drivers/media/common/videobuf2/
H A Dframe_vector.c194 VM_BUG_ON(vec->nr_frames > 0); in frame_vector_destroy()
/linux/arch/arm/mm/
H A Dmmap.c137 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area_topdown()
/linux/arch/sh/mm/
H A Dmmap.c156 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area_topdown()
/linux/arch/powerpc/kernel/
H A Dpaca.c317 VM_BUG_ON(!mm_ctx_slb_addr_limit(context)); in copy_mm_to_paca()
/linux/arch/s390/mm/
H A Dinit.c271 VM_BUG_ON(!mhp_range_allowed(start, size, true)); in arch_add_memory()
/linux/arch/sparc/kernel/
H A Dsys_sparc_64.c153 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area()
227 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area_topdown()

123