| /Linux-v5.15/include/linux/ |
| D | mm_inline.h | 87 update_lru_size(lruvec, lru, page_zonenum(page), thp_nr_pages(page)); in add_page_to_lru_list() 96 update_lru_size(lruvec, lru, page_zonenum(page), thp_nr_pages(page)); in add_page_to_lru_list_tail() 105 -thp_nr_pages(page)); in del_page_from_lru_list()
|
| D | pagemap.h | 452 return page_index(head) == (index & ~(thp_nr_pages(head) - 1UL)); in thp_contains() 465 return head + (index & (thp_nr_pages(head) - 1)); in find_subpage() 933 rac->_batch_count = thp_nr_pages(page); in readahead_page() 958 rac->_batch_count += thp_nr_pages(page); in __readahead_batch()
|
| D | huge_mm.h | 278 static inline int thp_nr_pages(struct page *page) in thp_nr_pages() function 351 static inline int thp_nr_pages(struct page *page) in thp_nr_pages() function
|
| /Linux-v5.15/mm/ |
| D | swap.c | 213 __count_vm_events(PGROTATED, thp_nr_pages(page)); in pagevec_move_tail_fn() 295 page_is_file_lru(page), thp_nr_pages(page)); in lru_note_cost_page() 301 int nr_pages = thp_nr_pages(page); in __activate_page() 475 int nr_pages = thp_nr_pages(page); in lru_cache_add_inactive_or_unevictable() 511 int nr_pages = thp_nr_pages(page); in lru_deactivate_file_fn() 551 int nr_pages = thp_nr_pages(page); in lru_deactivate_fn() 568 int nr_pages = thp_nr_pages(page); in lru_lazyfree_fn() 991 int nr_pages = thp_nr_pages(page); in __pagevec_lru_add_fn()
|
| D | workingset.c | 271 workingset_age_nonresident(lruvec, thp_nr_pages(page)); in workingset_eviction() 380 workingset_age_nonresident(lruvec, thp_nr_pages(page)); in workingset_refault() 415 workingset_age_nonresident(lruvec, thp_nr_pages(page)); in workingset_activation()
|
| D | mlock.c | 67 nr_pages = thp_nr_pages(page); in clear_page_mlock() 100 int nr_pages = thp_nr_pages(page); in mlock_vma_page() 126 count_vm_events(UNEVICTABLE_PGMUNLOCKED, thp_nr_pages(page)); in __munlock_isolated_page() 142 int nr_pages = thp_nr_pages(page); in __munlock_isolation_failed() 181 nr_pages = thp_nr_pages(page); in munlock_vma_page()
|
| D | rmap.c | 1143 int nr = compound ? thp_nr_pages(page) : 1; in do_page_add_anon_rmap() 1182 int nr = compound ? thp_nr_pages(page) : 1; in page_add_new_anon_rmap() 1218 int nr_pages = thp_nr_pages(page); in page_add_file_rmap() 1265 int nr_pages = thp_nr_pages(page); in page_remove_file_rmap() 1309 __mod_lruvec_page_state(page, NR_ANON_THPS, -thp_nr_pages(page)); in page_remove_anon_compound_rmap() 1316 for (i = 0, nr = 0; i < thp_nr_pages(page); i++) { in page_remove_anon_compound_rmap() 1326 if (nr && nr < thp_nr_pages(page)) in page_remove_anon_compound_rmap() 1329 nr = thp_nr_pages(page); in page_remove_anon_compound_rmap() 2285 pgoff_end = pgoff_start + thp_nr_pages(page) - 1; in rmap_walk_anon() 2339 pgoff_end = pgoff_start + thp_nr_pages(page) - 1; in rmap_walk_file()
|
| D | swap_state.c | 106 unsigned long i, nr = thp_nr_pages(page); in add_to_swap_cache() 156 int i, nr = thp_nr_pages(page); in __delete_from_swap_cache() 250 page_ref_sub(page, thp_nr_pages(page)); in delete_from_swap_cache()
|
| D | migrate.c | 166 page_is_file_lru(page), -thp_nr_pages(page)); in putback_movable_pages() 367 expected_count += thp_nr_pages(page) + page_has_private(page); in expected_page_refs() 387 int nr = thp_nr_pages(page); in migrate_page_move_mapping() 1238 page_is_file_lru(page), -thp_nr_pages(page)); in unmap_and_move() 1479 nr_subpages = thp_nr_pages(page); in migrate_pages() 1737 thp_nr_pages(head)); in add_page_for_migration() 2112 int nr_pages = thp_nr_pages(page); in numamigrate_isolate_page() 2154 int nr_pages = thp_nr_pages(page); in migrate_misplaced_page()
|
| D | huge_memory.c | 2412 unsigned int nr = thp_nr_pages(head); in __split_huge_page() 2561 for (i = 0; i < thp_nr_pages(page); i++) { in page_trans_huge_mapcount() 2568 _total_mapcount -= thp_nr_pages(page); in page_trans_huge_mapcount() 2585 extra_pins = PageSwapCache(page) ? thp_nr_pages(page) : 0; in can_split_huge_page() 2587 extra_pins = thp_nr_pages(page); in can_split_huge_page() 2703 int nr = thp_nr_pages(head); in split_huge_page_to_list() 2723 remap_page(head, thp_nr_pages(head)); in split_huge_page_to_list() 3039 nr_pages = thp_nr_pages(fpage); in split_huge_pages_in_file()
|
| D | filemap.c | 194 nr = thp_nr_pages(page); in unaccount_page_cache_page() 245 page_ref_sub(page, thp_nr_pages(page)); in page_cache_free_page() 2097 if (page->index + thp_nr_pages(page) - 1 > end) in find_lock_entries() 2116 unsigned int nr_pages = thp_nr_pages(page); in find_lock_entries() 2282 *index = page->index + thp_nr_pages(page); in find_get_pages_range_tag() 2358 xas.xa_index = head->index + thp_nr_pages(head) - 1; in filemap_get_read_batch() 2679 for (j = 0; j < thp_nr_pages(page); j++) in filemap_read()
|
| D | page_vma_mapped.c | 65 return pfn >= page_pfn && pfn - page_pfn < thp_nr_pages(page); in pfn_is_match()
|
| D | page_io.c | 263 count_vm_events(PSWPOUT, thp_nr_pages(page)); in count_swpout_vm_event()
|
| D | vmscan.c | 973 int page_cache_pins = thp_nr_pages(page); in is_page_cache_freeable() 1668 stat->nr_pageout += thp_nr_pages(page); in shrink_page_list() 2204 nr_pages = thp_nr_pages(page); in move_pages_to_lru() 2405 nr_rotated += thp_nr_pages(page); in shrink_active_list() 4673 nr_pages = thp_nr_pages(page); in check_move_unevictable_pages()
|
| D | truncate.c | 492 index += thp_nr_pages(page) - 1; in __invalidate_mapping_pages()
|
| D | memcontrol.c | 5580 unsigned int nr_pages = compound ? thp_nr_pages(page) : 1; in mem_cgroup_move_account() 6685 unsigned int nr_pages = thp_nr_pages(page); in charge_memcg() 6967 nr_pages = thp_nr_pages(newpage); in mem_cgroup_migrate() 7180 nr_entries = thp_nr_pages(page); in mem_cgroup_swapout() 7224 unsigned int nr_pages = thp_nr_pages(page); in __mem_cgroup_try_charge_swap()
|
| D | memory_hotplug.c | 1710 pfn = page_to_pfn(head) + thp_nr_pages(page) - 1; in do_migrate_range()
|
| D | khugepaged.c | 1867 nr = thp_nr_pages(new_page); in collapse_file()
|
| D | compaction.c | 1064 thp_nr_pages(page)); in isolate_migratepages_block()
|
| D | gup.c | 1741 thp_nr_pages(head)); in check_and_migrate_movable_pages()
|
| D | mempolicy.c | 1032 thp_nr_pages(head)); in migrate_page_add()
|
| D | swapfile.c | 1357 int size = swap_entry_size(thp_nr_pages(page)); in put_swap_page()
|
| /Linux-v5.15/fs/afs/ |
| D | write.c | 506 index += thp_nr_pages(page); in afs_extend_writeback() 532 *_count -= thp_nr_pages(page); in afs_extend_writeback() 566 count -= thp_nr_pages(page); in afs_write_back_from_locked_page()
|
| /Linux-v5.15/fs/netfs/ |
| D | read_helper.c | 436 for (i = 0; i < thp_nr_pages(page); i++) in netfs_rreq_unlock() 1150 ractl._nr_pages = thp_nr_pages(page); in netfs_write_begin()
|
| /Linux-v5.15/lib/ |
| D | iov_iter.c | 90 j < thp_nr_pages(head); j++) { \
|