Lines Matching refs:nr_pages
266 void lru_note_cost(struct lruvec *lruvec, bool file, unsigned int nr_pages) in lru_note_cost() argument
281 lruvec->file_cost += nr_pages; in lru_note_cost()
283 lruvec->anon_cost += nr_pages; in lru_note_cost()
315 long nr_pages = folio_nr_pages(folio); in __folio_activate() local
322 __count_vm_events(PGACTIVATE, nr_pages); in __folio_activate()
324 nr_pages); in __folio_activate()
491 int nr_pages = thp_nr_pages(page); in lru_cache_add_inactive_or_unevictable() local
497 __mod_zone_page_state(page_zone(page), NR_MLOCK, nr_pages); in lru_cache_add_inactive_or_unevictable()
498 count_vm_events(UNEVICTABLE_PGMLOCKED, nr_pages); in lru_cache_add_inactive_or_unevictable()
527 int nr_pages = thp_nr_pages(page); in lru_deactivate_file_fn() local
554 __count_vm_events(PGROTATED, nr_pages); in lru_deactivate_file_fn()
558 __count_vm_events(PGDEACTIVATE, nr_pages); in lru_deactivate_file_fn()
560 nr_pages); in lru_deactivate_file_fn()
567 int nr_pages = thp_nr_pages(page); in lru_deactivate_fn() local
574 __count_vm_events(PGDEACTIVATE, nr_pages); in lru_deactivate_fn()
576 nr_pages); in lru_deactivate_fn()
584 int nr_pages = thp_nr_pages(page); in lru_lazyfree_fn() local
597 __count_vm_events(PGLAZYFREE, nr_pages); in lru_lazyfree_fn()
599 nr_pages); in lru_lazyfree_fn()
1008 long nr_pages = folio_nr_pages(folio); in __pagevec_lru_add_fn() local
1045 __count_vm_events(UNEVICTABLE_PGRESCUED, nr_pages); in __pagevec_lru_add_fn()
1050 __count_vm_events(UNEVICTABLE_PGCULLED, nr_pages); in __pagevec_lru_add_fn()