Lines Matching refs:pgdat
274 struct pglist_data *pgdat; in refresh_zone_stat_thresholds() local
280 for_each_online_pgdat(pgdat) { in refresh_zone_stat_thresholds()
282 per_cpu_ptr(pgdat->per_cpu_nodestats, cpu)->stat_threshold = 0; in refresh_zone_stat_thresholds()
287 struct pglist_data *pgdat = zone->zone_pgdat; in refresh_zone_stat_thresholds() local
299 pgdat_threshold = per_cpu_ptr(pgdat->per_cpu_nodestats, cpu)->stat_threshold; in refresh_zone_stat_thresholds()
300 per_cpu_ptr(pgdat->per_cpu_nodestats, cpu)->stat_threshold in refresh_zone_stat_thresholds()
317 void set_pgdat_percpu_threshold(pg_data_t *pgdat, in set_pgdat_percpu_threshold() argument
325 for (i = 0; i < pgdat->nr_zones; i++) { in set_pgdat_percpu_threshold()
326 zone = &pgdat->node_zones[i]; in set_pgdat_percpu_threshold()
375 void __mod_node_page_state(struct pglist_data *pgdat, enum node_stat_item item, in __mod_node_page_state() argument
378 struct per_cpu_nodestat __percpu *pcp = pgdat->per_cpu_nodestats; in __mod_node_page_state()
403 node_page_state_add(x, pgdat, item); in __mod_node_page_state()
459 void __inc_node_state(struct pglist_data *pgdat, enum node_stat_item item) in __inc_node_state() argument
461 struct per_cpu_nodestat __percpu *pcp = pgdat->per_cpu_nodestats; in __inc_node_state()
476 node_page_state_add(v + overstep, pgdat, item); in __inc_node_state()
519 void __dec_node_state(struct pglist_data *pgdat, enum node_stat_item item) in __dec_node_state() argument
521 struct per_cpu_nodestat __percpu *pcp = pgdat->per_cpu_nodestats; in __dec_node_state()
536 node_page_state_add(v - overstep, pgdat, item); in __dec_node_state()
626 static inline void mod_node_state(struct pglist_data *pgdat, in mod_node_state() argument
629 struct per_cpu_nodestat __percpu *pcp = pgdat->per_cpu_nodestats; in mod_node_state()
672 node_page_state_add(z, pgdat, item); in mod_node_state()
675 void mod_node_page_state(struct pglist_data *pgdat, enum node_stat_item item, in mod_node_page_state() argument
678 mod_node_state(pgdat, item, delta, 0); in mod_node_page_state()
682 void inc_node_state(struct pglist_data *pgdat, enum node_stat_item item) in inc_node_state() argument
684 mod_node_state(pgdat, item, 1, 1); in inc_node_state()
735 void inc_node_state(struct pglist_data *pgdat, enum node_stat_item item) in inc_node_state() argument
740 __inc_node_state(pgdat, item); in inc_node_state()
745 void mod_node_page_state(struct pglist_data *pgdat, enum node_stat_item item, in mod_node_page_state() argument
751 __mod_node_page_state(pgdat, item, delta); in mod_node_page_state()
759 struct pglist_data *pgdat; in inc_node_page_state() local
761 pgdat = page_pgdat(page); in inc_node_page_state()
763 __inc_node_state(pgdat, item); in inc_node_page_state()
820 struct pglist_data *pgdat; in refresh_cpu_vm_stats() local
881 for_each_online_pgdat(pgdat) { in refresh_cpu_vm_stats()
882 struct per_cpu_nodestat __percpu *p = pgdat->per_cpu_nodestats; in refresh_cpu_vm_stats()
889 atomic_long_add(v, &pgdat->vm_stat[i]); in refresh_cpu_vm_stats()
906 struct pglist_data *pgdat; in cpu_vm_stats_fold() local
940 for_each_online_pgdat(pgdat) { in cpu_vm_stats_fold()
943 p = per_cpu_ptr(pgdat->per_cpu_nodestats, cpu); in cpu_vm_stats_fold()
951 atomic_long_add(v, &pgdat->vm_stat[i]); in cpu_vm_stats_fold()
1024 unsigned long node_page_state_pages(struct pglist_data *pgdat, in node_page_state_pages() argument
1027 long x = atomic_long_read(&pgdat->vm_stat[item]); in node_page_state_pages()
1035 unsigned long node_page_state(struct pglist_data *pgdat, in node_page_state() argument
1040 return node_page_state_pages(pgdat, item); in node_page_state()
1398 pg_data_t *pgdat; in frag_start() local
1401 for (pgdat = first_online_pgdat(); in frag_start()
1402 pgdat && node; in frag_start()
1403 pgdat = next_online_pgdat(pgdat)) in frag_start()
1406 return pgdat; in frag_start()
1411 pg_data_t *pgdat = (pg_data_t *)arg; in frag_next() local
1414 return next_online_pgdat(pgdat); in frag_next()
1425 static void walk_zones_in_node(struct seq_file *m, pg_data_t *pgdat, in walk_zones_in_node() argument
1430 struct zone *node_zones = pgdat->node_zones; in walk_zones_in_node()
1439 print(m, pgdat, zone); in walk_zones_in_node()
1447 static void frag_show_print(struct seq_file *m, pg_data_t *pgdat, in frag_show_print() argument
1452 seq_printf(m, "Node %d, zone %8s ", pgdat->node_id, zone->name); in frag_show_print()
1467 pg_data_t *pgdat = (pg_data_t *)arg; in frag_show() local
1468 walk_zones_in_node(m, pgdat, true, false, frag_show_print); in frag_show()
1473 pg_data_t *pgdat, struct zone *zone) in pagetypeinfo_showfree_print() argument
1479 pgdat->node_id, in pagetypeinfo_showfree_print()
1518 pg_data_t *pgdat = (pg_data_t *)arg; in pagetypeinfo_showfree() local
1526 walk_zones_in_node(m, pgdat, true, false, pagetypeinfo_showfree_print); in pagetypeinfo_showfree()
1530 pg_data_t *pgdat, struct zone *zone) in pagetypeinfo_showblockcount_print() argument
1555 seq_printf(m, "Node %d, zone %8s ", pgdat->node_id, zone->name); in pagetypeinfo_showblockcount_print()
1565 pg_data_t *pgdat = (pg_data_t *)arg; in pagetypeinfo_showblockcount() local
1571 walk_zones_in_node(m, pgdat, true, false, in pagetypeinfo_showblockcount()
1581 static void pagetypeinfo_showmixedcount(struct seq_file *m, pg_data_t *pgdat) in pagetypeinfo_showmixedcount() argument
1596 walk_zones_in_node(m, pgdat, true, true, in pagetypeinfo_showmixedcount()
1607 pg_data_t *pgdat = (pg_data_t *)arg; in pagetypeinfo_show() local
1610 if (!node_state(pgdat->node_id, N_MEMORY)) in pagetypeinfo_show()
1616 pagetypeinfo_showfree(m, pgdat); in pagetypeinfo_show()
1617 pagetypeinfo_showblockcount(m, pgdat); in pagetypeinfo_show()
1618 pagetypeinfo_showmixedcount(m, pgdat); in pagetypeinfo_show()
1637 static bool is_zone_first_populated(pg_data_t *pgdat, struct zone *zone) in is_zone_first_populated() argument
1642 struct zone *compare = &pgdat->node_zones[zid]; in is_zone_first_populated()
1651 static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat, in zoneinfo_show_print() argument
1655 seq_printf(m, "Node %d, zone %8s", pgdat->node_id, zone->name); in zoneinfo_show_print()
1656 if (is_zone_first_populated(pgdat, zone)) { in zoneinfo_show_print()
1659 unsigned long pages = node_page_state_pages(pgdat, i); in zoneinfo_show_print()
1734 pgdat->kswapd_failures >= MAX_RECLAIM_RETRIES, in zoneinfo_show_print()
1747 pg_data_t *pgdat = (pg_data_t *)arg; in zoneinfo_show() local
1748 walk_zones_in_node(m, pgdat, false, false, zoneinfo_show_print); in zoneinfo_show()
2130 pg_data_t *pgdat, struct zone *zone) in unusable_show_print() argument
2137 pgdat->node_id, in unusable_show_print()
2159 pg_data_t *pgdat = (pg_data_t *)arg; in unusable_show() local
2162 if (!node_state(pgdat->node_id, N_MEMORY)) in unusable_show()
2165 walk_zones_in_node(m, pgdat, true, false, unusable_show_print); in unusable_show()
2180 pg_data_t *pgdat, struct zone *zone) in extfrag_show_print() argument
2189 pgdat->node_id, in extfrag_show_print()
2205 pg_data_t *pgdat = (pg_data_t *)arg; in extfrag_show() local
2207 walk_zones_in_node(m, pgdat, true, false, extfrag_show_print); in extfrag_show()