Home
last modified time | relevance | path

Searched refs:VM_BUG_ON_FOLIO (Results 1 – 25 of 33) sorted by relevance

12

/openbmc/linux/mm/
H A Dswap_state.c97 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in add_to_swap_cache()
98 VM_BUG_ON_FOLIO(folio_test_swapcache(folio), folio); in add_to_swap_cache()
99 VM_BUG_ON_FOLIO(!folio_test_swapbacked(folio), folio); in add_to_swap_cache()
111 VM_BUG_ON_FOLIO(xas.xa_index != idx + i, folio); in add_to_swap_cache()
150 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in __delete_from_swap_cache()
151 VM_BUG_ON_FOLIO(!folio_test_swapcache(folio), folio); in __delete_from_swap_cache()
152 VM_BUG_ON_FOLIO(folio_test_writeback(folio), folio); in __delete_from_swap_cache()
181 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in add_to_swap()
182 VM_BUG_ON_FOLIO(!folio_test_uptodate(folio), folio); in add_to_swap()
H A Drmap.c1111 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in page_move_anon_rmap()
1185 VM_BUG_ON_FOLIO(folio_anon_vma(folio)->root != vma->anon_vma->root, in __page_check_anon_rmap()
1523 VM_BUG_ON_FOLIO(!pvmw.pte, folio); in try_to_unmap_one()
1876 VM_BUG_ON_FOLIO(folio_test_hugetlb(folio) || in try_to_migrate_one()
1889 VM_BUG_ON_FOLIO(!pvmw.pte, folio); in try_to_migrate_one()
1904 VM_BUG_ON_FOLIO(folio_nr_pages(folio) > 1, folio); in try_to_migrate_one()
2204 VM_BUG_ON_FOLIO(!pvmw.pte, folio); in page_make_device_exclusive_one()
2422 VM_BUG_ON_FOLIO(!anon_vma, folio); in rmap_walk_anon()
2474 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in rmap_walk_file()
2528 VM_BUG_ON_FOLIO(folio_test_ksm(folio), folio); in rmap_walk_locked()
H A Dworkingset.c389 VM_BUG_ON_FOLIO(folio_test_lru(folio), folio); in workingset_eviction()
390 VM_BUG_ON_FOLIO(folio_ref_count(folio), folio); in workingset_eviction()
391 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in workingset_eviction()
H A Dswap.c168 VM_BUG_ON_FOLIO(folio_test_lru(folio), folio); in lru_add_fn()
505 VM_BUG_ON_FOLIO(folio_test_active(folio) && in folio_add_lru()
507 VM_BUG_ON_FOLIO(folio_test_lru(folio), folio); in folio_add_lru()
532 VM_BUG_ON_FOLIO(folio_test_lru(folio), folio); in folio_add_lru_vma()
H A Dmigrate.c111 VM_BUG_ON_FOLIO(!mops, folio); in isolate_movable_page()
164 VM_BUG_ON_FOLIO(!folio_test_isolated(folio), folio); in putback_movable_pages()
204 VM_BUG_ON_FOLIO(folio_test_hugetlb(folio) || in remove_migration_pte()
448 VM_BUG_ON_FOLIO(folio_test_swapcache(folio), folio); in folio_migrate_mapping()
568 VM_BUG_ON_FOLIO(folio_test_unevictable(folio), folio); in folio_migrate_flags()
958 VM_BUG_ON_FOLIO(!folio_test_locked(src), src); in move_to_new_folio()
959 VM_BUG_ON_FOLIO(!folio_test_locked(dst), dst); in move_to_new_folio()
985 VM_BUG_ON_FOLIO(!folio_test_isolated(src), src); in move_to_new_folio()
1004 VM_BUG_ON_FOLIO(!folio_test_isolated(src), src); in move_to_new_folio()
1241 VM_BUG_ON_FOLIO(folio_test_anon(src) && in migrate_folio_unmap()
H A Dpage_io.c501 VM_BUG_ON_FOLIO(!folio_test_swapcache(folio) && !synchronous, folio); in swap_readpage()
502 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in swap_readpage()
503 VM_BUG_ON_FOLIO(folio_test_uptodate(folio), folio); in swap_readpage()
H A Dfilemap.c140 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in page_cache_delete()
155 VM_BUG_ON_FOLIO(folio_mapped(folio), folio); in filemap_unaccount_folio()
303 VM_BUG_ON_FOLIO(folio->index > in page_cache_delete_batch()
814 VM_BUG_ON_FOLIO(!folio_test_locked(old), old); in replace_page_cache_folio()
815 VM_BUG_ON_FOLIO(!folio_test_locked(new), new); in replace_page_cache_folio()
816 VM_BUG_ON_FOLIO(new->mapping, new); in replace_page_cache_folio()
854 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in __filemap_add_folio()
855 VM_BUG_ON_FOLIO(folio_test_swapbacked(folio), folio); in __filemap_add_folio()
1552 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in folio_unlock()
1571 VM_BUG_ON_FOLIO(!folio_test_private_2(folio), folio); in folio_end_private_2()
[all …]
H A Dtruncate.c422 VM_BUG_ON_FOLIO(!folio_contains(folio, indices[i]), folio); in truncate_inode_pages_range()
662 VM_BUG_ON_FOLIO(!folio_contains(folio, indices[i]), folio); in invalidate_inode_pages2_range()
H A Dmemcontrol.c2848 VM_BUG_ON_FOLIO(folio_memcg(folio), folio); in commit_charge()
5796 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in mem_cgroup_move_account()
5797 VM_BUG_ON_FOLIO(folio_test_lru(folio), folio); in mem_cgroup_move_account()
7155 VM_BUG_ON_FOLIO(folio_test_lru(folio), folio); in uncharge_folio()
7256 VM_BUG_ON_FOLIO(!folio_test_locked(old), old); in mem_cgroup_migrate()
7257 VM_BUG_ON_FOLIO(!folio_test_locked(new), new); in mem_cgroup_migrate()
7465 VM_BUG_ON_FOLIO(folio_test_lru(folio), folio); in mem_cgroup_swapout()
7466 VM_BUG_ON_FOLIO(folio_ref_count(folio), folio); in mem_cgroup_swapout()
7492 VM_BUG_ON_FOLIO(oldid, folio); in mem_cgroup_swapout()
7564 VM_BUG_ON_FOLIO(oldid, folio); in __mem_cgroup_try_charge_swap()
[all …]
H A Dksm.c2841 VM_BUG_ON_FOLIO(!folio_test_ksm(folio), folio); in rmap_walk_ksm()
2847 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in rmap_walk_ksm()
2955 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in folio_migrate_ksm()
2956 VM_BUG_ON_FOLIO(!folio_test_locked(newfolio), newfolio); in folio_migrate_ksm()
2957 VM_BUG_ON_FOLIO(newfolio->mapping != folio->mapping, newfolio); in folio_migrate_ksm()
2961 VM_BUG_ON_FOLIO(stable_node->kpfn != folio_pfn(folio), folio); in folio_migrate_ksm()
H A Dhuge_memory.c583 VM_BUG_ON_FOLIO(folio_order(folio) < 2, folio); in folio_prep_large_rmappable()
659 VM_BUG_ON_FOLIO(!folio_test_large(folio), folio); in __do_huge_pmd_anonymous_page()
2355 VM_BUG_ON_FOLIO(!folio_test_large(folio), folio); in unmap_folio()
2638 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in split_huge_page_to_list()
2639 VM_BUG_ON_FOLIO(!folio_test_large(folio), folio); in split_huge_page_to_list()
2810 VM_BUG_ON_FOLIO(folio_order(folio) < 2, folio); in deferred_split_folio()
H A Dshmem.c775 VM_BUG_ON_FOLIO(index != round_down(index, nr), folio); in shmem_add_to_page_cache()
776 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in shmem_add_to_page_cache()
777 VM_BUG_ON_FOLIO(!folio_test_swapbacked(folio), folio); in shmem_add_to_page_cache()
1104 VM_BUG_ON_FOLIO(folio_test_writeback(folio), in shmem_undo_range()
1754 VM_BUG_ON_FOLIO(folio_test_large(old), old); in shmem_replace_folio()
2647 VM_BUG_ON_FOLIO(folio_test_large(folio), folio); in shmem_mfill_atomic_pte()
H A Dmlock.c105 VM_BUG_ON_FOLIO(folio_test_lru(folio), folio); in __mlock_new_folio()
H A Dhugetlb.c1322 VM_BUG_ON_FOLIO(folio_ref_count(folio), folio); in enqueue_hugetlb_folio()
1652 VM_BUG_ON_FOLIO(hugetlb_cgroup_from_folio(folio), folio); in __remove_hugetlb_folio()
1653 VM_BUG_ON_FOLIO(hugetlb_cgroup_from_folio_rsvd(folio), folio); in __remove_hugetlb_folio()
1707 VM_BUG_ON_FOLIO(!folio_test_hugetlb_vmemmap_optimized(folio), folio); in add_hugetlb_folio()
1904 VM_BUG_ON_FOLIO(folio_ref_count(folio), folio); in free_huge_folio()
1905 VM_BUG_ON_FOLIO(folio_mapcount(folio), folio); in free_huge_folio()
H A Dvmscan.c1737 VM_BUG_ON_FOLIO(folio_test_active(folio), folio); in shrink_folio_list()
2138 VM_BUG_ON_FOLIO(folio_test_active(folio), folio); in shrink_folio_list()
2149 VM_BUG_ON_FOLIO(folio_test_lru(folio) || in shrink_folio_list()
2405 VM_BUG_ON_FOLIO(!folio_ref_count(folio), folio); in folio_isolate_lru()
2479 VM_BUG_ON_FOLIO(folio_test_lru(folio), folio); in move_folios_to_lru()
2518 VM_BUG_ON_FOLIO(!folio_matches_lruvec(folio, lruvec), folio); in move_folios_to_lru()
/openbmc/linux/include/linux/
H A Dmmdebug.h27 #define VM_BUG_ON_FOLIO(cond, folio) \ macro
98 #define VM_BUG_ON_FOLIO(cond, folio) VM_BUG_ON(cond) macro
H A Dhugetlb_cgroup.h70 VM_BUG_ON_FOLIO(!folio_test_hugetlb(folio), folio); in __hugetlb_cgroup_from_folio()
93 VM_BUG_ON_FOLIO(!folio_test_hugetlb(folio), folio); in __set_hugetlb_cgroup()
H A Dmemcontrol.h387 VM_BUG_ON_FOLIO(folio_test_slab(folio), folio); in __folio_memcg()
388 VM_BUG_ON_FOLIO(memcg_data & MEMCG_DATA_OBJCGS, folio); in __folio_memcg()
389 VM_BUG_ON_FOLIO(memcg_data & MEMCG_DATA_KMEM, folio); in __folio_memcg()
408 VM_BUG_ON_FOLIO(folio_test_slab(folio), folio); in __folio_objcg()
409 VM_BUG_ON_FOLIO(memcg_data & MEMCG_DATA_OBJCGS, folio); in __folio_objcg()
410 VM_BUG_ON_FOLIO(!(memcg_data & MEMCG_DATA_KMEM), folio); in __folio_objcg()
463 VM_BUG_ON_FOLIO(folio_test_slab(folio), folio); in folio_memcg_rcu()
552 VM_BUG_ON_FOLIO(folio->memcg_data & MEMCG_DATA_OBJCGS, folio); in folio_memcg_kmem()
H A Dmm_inline.h67 VM_BUG_ON_FOLIO(!folio_test_lru(folio), folio); in __folio_clear_lru_flags()
90 VM_BUG_ON_FOLIO(folio_test_active(folio) && folio_test_unevictable(folio), folio); in folio_lru_list()
H A Dnetfs.h44 VM_BUG_ON_FOLIO(folio_test_private_2(folio), folio); in folio_start_fscache()
H A Dpage-flags.h933 VM_BUG_ON_FOLIO(!folio_test_type(folio, 0), folio); \
938 VM_BUG_ON_FOLIO(!folio_test_##fname(folio), folio); \
H A Dhugetlb.h874 VM_BUG_ON_FOLIO(!folio_test_hugetlb(folio), folio); in folio_hstate()
H A Dpagemap.h1365 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); in __readahead_folio()
/openbmc/linux/fs/ext4/
H A Dmove_extent.c320 VM_BUG_ON_FOLIO(folio_test_large(folio[0]), folio[0]); in move_extent_per_page()
321 VM_BUG_ON_FOLIO(folio_test_large(folio[1]), folio[1]); in move_extent_per_page()
322 VM_BUG_ON_FOLIO(folio_nr_pages(folio[0]) != folio_nr_pages(folio[1]), folio[1]); in move_extent_per_page()
/openbmc/linux/fs/
H A Dmpage.c182 VM_BUG_ON_FOLIO(folio_test_large(folio), folio); in do_mpage_readpage()

12