Lines Matching refs:z

1497 		struct zone *z;  in drain_all_pages()  local
1505 for_each_populated_zone(z) { in drain_all_pages()
1506 pcp = per_cpu_ptr(z->pageset, cpu); in drain_all_pages()
1877 static bool __zone_watermark_ok(struct zone *z, unsigned int order, in __zone_watermark_ok() argument
1894 free_cma = zone_page_state(z, NR_FREE_CMA_PAGES); in __zone_watermark_ok()
1897 if (free_pages - free_cma <= min + z->lowmem_reserve[classzone_idx]) in __zone_watermark_ok()
1901 free_pages -= z->free_area[o].nr_free << o; in __zone_watermark_ok()
1912 bool zone_watermark_ok(struct zone *z, unsigned int order, unsigned long mark, in zone_watermark_ok() argument
1915 return __zone_watermark_ok(z, order, mark, classzone_idx, alloc_flags, in zone_watermark_ok()
1916 zone_page_state(z, NR_FREE_PAGES)); in zone_watermark_ok()
1919 bool zone_watermark_ok_safe(struct zone *z, unsigned int order, in zone_watermark_ok_safe() argument
1922 long free_pages = zone_page_state(z, NR_FREE_PAGES); in zone_watermark_ok_safe()
1924 if (z->percpu_drift_mark && free_pages < z->percpu_drift_mark) in zone_watermark_ok_safe()
1925 free_pages = zone_page_state_snapshot(z, NR_FREE_PAGES); in zone_watermark_ok_safe()
1927 return __zone_watermark_ok(z, order, mark, classzone_idx, alloc_flags, in zone_watermark_ok_safe()
1996 static int zlc_zone_worth_trying(struct zonelist *zonelist, struct zoneref *z, in zlc_zone_worth_trying() argument
2007 i = z - zonelist->_zonerefs; in zlc_zone_worth_trying()
2019 static void zlc_mark_zone_full(struct zonelist *zonelist, struct zoneref *z) in zlc_mark_zone_full() argument
2028 i = z - zonelist->_zonerefs; in zlc_mark_zone_full()
2066 static int zlc_zone_worth_trying(struct zonelist *zonelist, struct zoneref *z, in zlc_zone_worth_trying() argument
2072 static void zlc_mark_zone_full(struct zonelist *zonelist, struct zoneref *z) in zlc_mark_zone_full() argument
2113 struct zoneref *z; in get_page_from_freelist() local
2131 for_each_zone_zonelist_nodemask(zone, z, zonelist, ac->high_zoneidx, in get_page_from_freelist()
2136 !zlc_zone_worth_trying(zonelist, z, allowednodes)) in get_page_from_freelist()
2216 !zlc_zone_worth_trying(zonelist, z, allowednodes)) in get_page_from_freelist()
2260 zlc_mark_zone_full(zonelist, z); in get_page_from_freelist()
2611 struct zoneref *z; in wake_all_kswapds() local
2614 for_each_zone_zonelist_nodemask(zone, z, ac->zonelist, in wake_all_kswapds()
3136 struct zoneref *z; in nr_free_zone_pages() local
3144 for_each_zone_zonelist(zone, z, zonelist, offset) { in nr_free_zone_pages()
3691 struct zone *z; in build_zonelists_in_zone_order() local
3699 z = &NODE_DATA(node)->node_zones[zone_type]; in build_zonelists_in_zone_order()
3700 if (populated_zone(z)) { in build_zonelists_in_zone_order()
3701 zoneref_set_zone(z, in build_zonelists_in_zone_order()
3800 struct zoneref *z; in build_zonelist_cache() local
3805 for (z = zonelist->_zonerefs; z->zone; z++) in build_zonelist_cache()
3806 zlc->z_to_n[z - zonelist->_zonerefs] = zonelist_node_idx(z); in build_zonelist_cache()
4203 struct zone *z; in memmap_init_zone() local
4208 z = &NODE_DATA(nid)->node_zones[zone]; in memmap_init_zone()
4242 if ((z->zone_start_pfn <= pfn) in memmap_init_zone()
4243 && (pfn < zone_end_pfn(z)) in memmap_init_zone()