Searched refs:page_count (Results 1 – 16 of 16) sorted by relevance
/mm/ |
D | memfd.c | 47 page_count(page) - total_mapcount(page) != cache_count) in memfd_tag_pins() 106 page_count(page) - total_mapcount(page)) { in memfd_wait_for_pins()
|
D | memory-failure.c | 905 count = page_count(p) - 1; in page_action() 1321 VM_BUG_ON_PAGE(!page_count(p), p); in memory_failure() 1558 if (page_count(page) > 1) { in unpoison_memory() 1611 if (freeit && !(pfn == my_zero_pfn(0) && page_count(p) == 1)) in unpoison_memory() 1822 pfn, ret, page_count(page), page->flags, &page->flags); in __soft_offline_page()
|
D | migrate.c | 408 if (page_count(page) != expected_count) in migrate_page_move_mapping() 424 if (page_count(page) != expected_count || xas_load(&xas) != page) { in migrate_page_move_mapping() 524 if (page_count(page) != expected_count || xas_load(&xas) != page) { in migrate_huge_page_move_mapping() 754 if (page_count(page) != expected_count) in __buffer_migrate_page() 1188 if (page_count(page) == 1) { in unmap_and_move() 1948 if (PageTransHuge(page) && page_count(page) != 3) { in numamigrate_isolate_page() 2436 if ((page_count(page) - extra) > page_mapcount(page)) in migrate_vma_check_page()
|
D | khugepaged.c | 591 if (page_count(page) != 1 + PageSwapCache(page)) { in __collapse_huge_page_isolate() 845 if (*hpage && page_count(*hpage) > 1) { in khugepaged_prealloc_page() 1224 if (page_count(page) != 1 + PageSwapCache(page)) { in khugepaged_scan_pmd() 1906 if (page_count(page) != in khugepaged_scan_file()
|
D | hugetlb.c | 1122 if (page_count(page) > 0) in pfn_range_valid_gigantic() 1296 VM_BUG_ON_PAGE(page_count(page), page); in __free_huge_page() 1639 if (!page_count(page)) { in dissolve_free_huge_page() 1930 VM_BUG_ON_PAGE(page_count(page), page); in gather_surplus_pages() 2313 WARN_ON(page_count(page) != 1); in gather_bootmem_prealloc() 4588 if (unlikely(page_count(page) <= 0)) { in follow_hugetlb_page() 5029 BUG_ON(page_count(virt_to_page(ptep)) == 0); in huge_pmd_unshare() 5030 if (page_count(virt_to_page(ptep)) == 1) in huge_pmd_unshare()
|
D | workingset.c | 233 VM_BUG_ON_PAGE(page_count(page), page); in workingset_eviction()
|
D | page_alloc.c | 814 VM_BUG_ON_PAGE(page_count(buddy) != 0, buddy); in page_is_buddy() 828 VM_BUG_ON_PAGE(page_count(buddy) != 0, buddy); in page_is_buddy() 3035 unsigned long pfn, max_zone_pfn, page_count = WD_PAGE_COUNT; in mark_free_pages() local 3050 if (!--page_count) { in mark_free_pages() 3052 page_count = WD_PAGE_COUNT; in mark_free_pages() 3069 if (!--page_count) { in mark_free_pages() 3071 page_count = WD_PAGE_COUNT; in mark_free_pages() 3193 VM_BUG_ON_PAGE(!page_count(page), page); in split_page() 8720 count += page_count(page) != 1; in free_contig_range() 8802 BUG_ON(page_count(page)); in __offline_isolated_pages()
|
D | mprotect.c | 89 page_count(page) != 1) in change_pte_range()
|
D | vmscan.c | 778 return page_count(page) - page_has_private(page) == 1 + page_cache_pins; in is_page_cache_freeable() 1453 if (!mapping && page_count(page) == 1) { in shrink_page_list() 1807 VM_BUG_ON_PAGE(!page_count(page), page); in isolate_lru_page()
|
D | filemap.c | 184 page_count(page) >= mapcount + 2) { in unaccount_page_cache_page() 252 VM_BUG_ON_PAGE(page_count(page) <= 0, page); in page_cache_free_page()
|
D | memory.c | 1544 if (!page_count(page)) in vm_insert_page() 2729 if (PageKsm(page) || page_count(page) != 1) in do_wp_page() 2733 if (PageKsm(page) || page_mapcount(page) != 1 || page_count(page) != 1) { in do_wp_page()
|
D | huge_memory.c | 2240 VM_BUG_ON_PAGE(!page_count(page), page); in __split_huge_pmd_locked() 2723 return total_mapcount(page) == page_count(page) - extra_pins - 1; in can_split_huge_page()
|
D | kmemleak.c | 1463 if (page_count(page) == 0) in kmemleak_scan()
|
D | compaction.c | 941 page_count(page) > page_mapcount(page)) in isolate_migratepages_block()
|
D | ksm.c | 1087 if (page_mapcount(page) + 1 + swapped != page_count(page)) { in write_protect_page()
|
D | memcontrol.c | 6739 VM_BUG_ON_PAGE(page_count(page) && !is_zone_device_page(page) && in uncharge_page() 7080 VM_BUG_ON_PAGE(page_count(page), page); in mem_cgroup_swapout()
|