Lines Matching refs:pgdat
277 static unsigned long node_dirtyable_memory(struct pglist_data *pgdat) in node_dirtyable_memory() argument
283 struct zone *zone = pgdat->node_zones + z; in node_dirtyable_memory()
296 nr_pages -= min(nr_pages, pgdat->totalreserve_pages); in node_dirtyable_memory()
298 nr_pages += node_page_state(pgdat, NR_INACTIVE_FILE); in node_dirtyable_memory()
299 nr_pages += node_page_state(pgdat, NR_ACTIVE_FILE); in node_dirtyable_memory()
477 static unsigned long node_dirty_limit(struct pglist_data *pgdat) in node_dirty_limit() argument
479 unsigned long node_memory = node_dirtyable_memory(pgdat); in node_dirty_limit()
502 bool node_dirty_ok(struct pglist_data *pgdat) in node_dirty_ok() argument
504 unsigned long limit = node_dirty_limit(pgdat); in node_dirty_ok()
507 nr_pages += node_page_state(pgdat, NR_FILE_DIRTY); in node_dirty_ok()
508 nr_pages += node_page_state(pgdat, NR_UNSTABLE_NFS); in node_dirty_ok()
509 nr_pages += node_page_state(pgdat, NR_WRITEBACK); in node_dirty_ok()