Lines Matching defs:pgdat

31 static void get_scan_count_hyperhold(struct pglist_data *pgdat,
36 struct lruvec *lruvec = node_lruvec(pgdat);
65 pgdatfree = sum_zone_node_page_state(pgdat->node_id, NR_FREE_PAGES);
66 pgdatfile = node_page_state(pgdat, NR_ACTIVE_FILE) +
67 node_page_state(pgdat, NR_INACTIVE_FILE);
70 struct zone *zone = &pgdat->node_zones[z];
186 void shrink_anon_memcg(struct pglist_data *pgdat,
190 struct lruvec *lruvec = mem_cgroup_lruvec(memcg, pgdat);
233 static void shrink_anon(struct pglist_data *pgdat,
242 node_lruvec(pgdat), LRU_ACTIVE_ANON, MAX_NR_ZONES);
244 node_lruvec(pgdat), LRU_INACTIVE_ANON, MAX_NR_ZONES);
252 lruvec = mem_cgroup_lruvec(memcg, pgdat);
296 shrink_anon_memcg(pgdat, memcg, sc, nr_memcg);
297 shrink_slab(sc->gfp_mask, pgdat->node_id, memcg,
313 static void shrink_file(struct pglist_data *pgdat,
316 struct lruvec *lruvec = node_lruvec(pgdat);
341 bool shrink_node_hyperhold(struct pglist_data *pgdat, struct scan_control *sc)
348 target_lruvec = mem_cgroup_lruvec(sc->target_mem_cgroup, pgdat);
360 spin_lock_irq(&pgdat->lru_lock);
361 sc->anon_cost = mem_cgroup_lruvec(NULL, pgdat)->anon_cost;
362 sc->file_cost = node_lruvec(pgdat)->file_cost;
363 spin_unlock_irq(&pgdat->lru_lock);
386 refaults = lruvec_page_state(node_lruvec(pgdat),
388 if (refaults != node_lruvec(pgdat)->refaults[1] ||
389 inactive_is_low(node_lruvec(pgdat), LRU_INACTIVE_FILE))
409 file = lruvec_page_state(node_lruvec(pgdat), NR_INACTIVE_FILE);
432 free = sum_zone_node_page_state(pgdat->node_id, NR_FREE_PAGES);
433 file = node_page_state(pgdat, NR_ACTIVE_FILE) +
434 node_page_state(pgdat, NR_INACTIVE_FILE);
437 struct zone *zone = &pgdat->node_zones[z];
450 anon = node_page_state(pgdat, NR_INACTIVE_ANON);
458 get_scan_count_hyperhold(pgdat, sc, nr, &node_lru_pages);
462 shrink_file(pgdat, sc, nr);
466 shrink_anon(pgdat, sc, nr);
490 set_bit(PGDAT_WRITEBACK, &pgdat->flags);
494 set_bit(PGDAT_DIRTY, &pgdat->flags);
525 } while (should_continue_reclaim(pgdat, sc->nr_reclaimed - nr_reclaimed,
534 pgdat->kswapd_failures = 0;