Lines Matching defs:pgdat
239 * @pgdat: the node
244 static unsigned long node_dirtyable_memory(struct pglist_data *pgdat)
250 struct zone *zone = pgdat->node_zones + z;
263 nr_pages -= min(nr_pages, pgdat->totalreserve_pages);
265 nr_pages += node_page_state(pgdat, NR_INACTIVE_FILE);
266 nr_pages += node_page_state(pgdat, NR_ACTIVE_FILE);
433 * @pgdat: the node
438 static unsigned long node_dirty_limit(struct pglist_data *pgdat)
440 unsigned long node_memory = node_dirtyable_memory(pgdat);
462 * @pgdat: the node to check
464 * Return: %true when the dirty pages in @pgdat are within the node's
467 bool node_dirty_ok(struct pglist_data *pgdat)
469 unsigned long limit = node_dirty_limit(pgdat);
472 nr_pages += node_page_state(pgdat, NR_FILE_DIRTY);
473 nr_pages += node_page_state(pgdat, NR_WRITEBACK);