Lines Matching refs:pgdat
248 struct pglist_data *pgdat; in refresh_zone_stat_thresholds() local
254 for_each_online_pgdat(pgdat) { in refresh_zone_stat_thresholds()
256 per_cpu_ptr(pgdat->per_cpu_nodestats, cpu)->stat_threshold = 0; in refresh_zone_stat_thresholds()
261 struct pglist_data *pgdat = zone->zone_pgdat; in refresh_zone_stat_thresholds() local
273 pgdat_threshold = per_cpu_ptr(pgdat->per_cpu_nodestats, cpu)->stat_threshold; in refresh_zone_stat_thresholds()
274 per_cpu_ptr(pgdat->per_cpu_nodestats, cpu)->stat_threshold in refresh_zone_stat_thresholds()
291 void set_pgdat_percpu_threshold(pg_data_t *pgdat, in set_pgdat_percpu_threshold() argument
299 for (i = 0; i < pgdat->nr_zones; i++) { in set_pgdat_percpu_threshold()
300 zone = &pgdat->node_zones[i]; in set_pgdat_percpu_threshold()
336 void __mod_node_page_state(struct pglist_data *pgdat, enum node_stat_item item, in __mod_node_page_state() argument
339 struct per_cpu_nodestat __percpu *pcp = pgdat->per_cpu_nodestats; in __mod_node_page_state()
354 node_page_state_add(x, pgdat, item); in __mod_node_page_state()
400 void __inc_node_state(struct pglist_data *pgdat, enum node_stat_item item) in __inc_node_state() argument
402 struct per_cpu_nodestat __percpu *pcp = pgdat->per_cpu_nodestats; in __inc_node_state()
413 node_page_state_add(v + overstep, pgdat, item); in __inc_node_state()
446 void __dec_node_state(struct pglist_data *pgdat, enum node_stat_item item) in __dec_node_state() argument
448 struct per_cpu_nodestat __percpu *pcp = pgdat->per_cpu_nodestats; in __dec_node_state()
459 node_page_state_add(v - overstep, pgdat, item); in __dec_node_state()
546 static inline void mod_node_state(struct pglist_data *pgdat, in mod_node_state() argument
549 struct per_cpu_nodestat __percpu *pcp = pgdat->per_cpu_nodestats; in mod_node_state()
586 node_page_state_add(z, pgdat, item); in mod_node_state()
589 void mod_node_page_state(struct pglist_data *pgdat, enum node_stat_item item, in mod_node_page_state() argument
592 mod_node_state(pgdat, item, delta, 0); in mod_node_page_state()
596 void inc_node_state(struct pglist_data *pgdat, enum node_stat_item item) in inc_node_state() argument
598 mod_node_state(pgdat, item, 1, 1); in inc_node_state()
649 void inc_node_state(struct pglist_data *pgdat, enum node_stat_item item) in inc_node_state() argument
654 __inc_node_state(pgdat, item); in inc_node_state()
659 void mod_node_page_state(struct pglist_data *pgdat, enum node_stat_item item, in mod_node_page_state() argument
665 __mod_node_page_state(pgdat, item, delta); in mod_node_page_state()
673 struct pglist_data *pgdat; in inc_node_page_state() local
675 pgdat = page_pgdat(page); in inc_node_page_state()
677 __inc_node_state(pgdat, item); in inc_node_page_state()
761 struct pglist_data *pgdat; in refresh_cpu_vm_stats() local
833 for_each_online_pgdat(pgdat) { in refresh_cpu_vm_stats()
834 struct per_cpu_nodestat __percpu *p = pgdat->per_cpu_nodestats; in refresh_cpu_vm_stats()
841 atomic_long_add(v, &pgdat->vm_stat[i]); in refresh_cpu_vm_stats()
863 struct pglist_data *pgdat; in cpu_vm_stats_fold() local
900 for_each_online_pgdat(pgdat) { in cpu_vm_stats_fold()
903 p = per_cpu_ptr(pgdat->per_cpu_nodestats, cpu); in cpu_vm_stats_fold()
911 atomic_long_add(v, &pgdat->vm_stat[i]); in cpu_vm_stats_fold()
1006 unsigned long node_page_state_pages(struct pglist_data *pgdat, in node_page_state_pages() argument
1009 long x = atomic_long_read(&pgdat->vm_stat[item]); in node_page_state_pages()
1017 unsigned long node_page_state(struct pglist_data *pgdat, in node_page_state() argument
1022 return node_page_state_pages(pgdat, item); in node_page_state()
1367 pg_data_t *pgdat; in frag_start() local
1370 for (pgdat = first_online_pgdat(); in frag_start()
1371 pgdat && node; in frag_start()
1372 pgdat = next_online_pgdat(pgdat)) in frag_start()
1375 return pgdat; in frag_start()
1380 pg_data_t *pgdat = (pg_data_t *)arg; in frag_next() local
1383 return next_online_pgdat(pgdat); in frag_next()
1394 static void walk_zones_in_node(struct seq_file *m, pg_data_t *pgdat, in walk_zones_in_node() argument
1399 struct zone *node_zones = pgdat->node_zones; in walk_zones_in_node()
1408 print(m, pgdat, zone); in walk_zones_in_node()
1416 static void frag_show_print(struct seq_file *m, pg_data_t *pgdat, in frag_show_print() argument
1421 seq_printf(m, "Node %d, zone %8s ", pgdat->node_id, zone->name); in frag_show_print()
1432 pg_data_t *pgdat = (pg_data_t *)arg; in frag_show() local
1433 walk_zones_in_node(m, pgdat, true, false, frag_show_print); in frag_show()
1438 pg_data_t *pgdat, struct zone *zone) in pagetypeinfo_showfree_print() argument
1444 pgdat->node_id, in pagetypeinfo_showfree_print()
1483 pg_data_t *pgdat = (pg_data_t *)arg; in pagetypeinfo_showfree() local
1491 walk_zones_in_node(m, pgdat, true, false, pagetypeinfo_showfree_print); in pagetypeinfo_showfree()
1497 pg_data_t *pgdat, struct zone *zone) in pagetypeinfo_showblockcount_print() argument
1522 seq_printf(m, "Node %d, zone %8s ", pgdat->node_id, zone->name); in pagetypeinfo_showblockcount_print()
1532 pg_data_t *pgdat = (pg_data_t *)arg; in pagetypeinfo_showblockcount() local
1538 walk_zones_in_node(m, pgdat, true, false, in pagetypeinfo_showblockcount()
1550 static void pagetypeinfo_showmixedcount(struct seq_file *m, pg_data_t *pgdat) in pagetypeinfo_showmixedcount() argument
1565 walk_zones_in_node(m, pgdat, true, true, in pagetypeinfo_showmixedcount()
1576 pg_data_t *pgdat = (pg_data_t *)arg; in pagetypeinfo_show() local
1579 if (!node_state(pgdat->node_id, N_MEMORY)) in pagetypeinfo_show()
1585 pagetypeinfo_showfree(m, pgdat); in pagetypeinfo_show()
1586 pagetypeinfo_showblockcount(m, pgdat); in pagetypeinfo_show()
1587 pagetypeinfo_showmixedcount(m, pgdat); in pagetypeinfo_show()
1606 static bool is_zone_first_populated(pg_data_t *pgdat, struct zone *zone) in is_zone_first_populated() argument
1611 struct zone *compare = &pgdat->node_zones[zid]; in is_zone_first_populated()
1620 static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat, in zoneinfo_show_print() argument
1624 seq_printf(m, "Node %d, zone %8s", pgdat->node_id, zone->name); in zoneinfo_show_print()
1625 if (is_zone_first_populated(pgdat, zone)) { in zoneinfo_show_print()
1629 node_page_state_pages(pgdat, i)); in zoneinfo_show_print()
1695 pgdat->kswapd_failures >= MAX_RECLAIM_RETRIES, in zoneinfo_show_print()
1708 pg_data_t *pgdat = (pg_data_t *)arg; in zoneinfo_show() local
1709 walk_zones_in_node(m, pgdat, false, false, zoneinfo_show_print); in zoneinfo_show()
2083 pg_data_t *pgdat, struct zone *zone) in unusable_show_print() argument
2090 pgdat->node_id, in unusable_show_print()
2112 pg_data_t *pgdat = (pg_data_t *)arg; in unusable_show() local
2115 if (!node_state(pgdat->node_id, N_MEMORY)) in unusable_show()
2118 walk_zones_in_node(m, pgdat, true, false, unusable_show_print); in unusable_show()
2133 pg_data_t *pgdat, struct zone *zone) in extfrag_show_print() argument
2142 pgdat->node_id, in extfrag_show_print()
2158 pg_data_t *pgdat = (pg_data_t *)arg; in extfrag_show() local
2160 walk_zones_in_node(m, pgdat, true, false, extfrag_show_print); in extfrag_show()