Lines Matching refs:z_recirc
4636 zone_depot_move_full(&z->z_recirc, in zalloc_expand_drain_exhausted_caches_locked()
4644 if (z->z_recirc.zd_full) { in zalloc_expand_drain_exhausted_caches_locked()
4645 mag = zone_depot_pop_head_full(&z->z_recirc, z); in zalloc_expand_drain_exhausted_caches_locked()
5734 seq = zone_depot_move_full(&zone->z_recirc, in zfree_cached_depot_recirculate()
5739 if (depot_max > 1 && zone_depot_poll(&zone->z_recirc, smr)) { in zfree_cached_depot_recirculate()
5741 &zone->z_recirc, depot_max / 2, NULL); in zfree_cached_depot_recirculate()
5747 if (n > zone->z_recirc.zd_empty) { in zfree_cached_depot_recirculate()
5748 n = zone->z_recirc.zd_empty; in zfree_cached_depot_recirculate()
5751 zone_depot_move_empty(&cache->zc_depot, &zone->z_recirc, in zfree_cached_depot_recirculate()
5764 if (zone->z_recirc.zd_empty == 0) { in zfree_cached_recirculate()
5770 if (mag == NULL && zone->z_recirc.zd_empty) { in zfree_cached_recirculate()
5771 mag = zone_depot_pop_head_empty(&zone->z_recirc, zone); in zfree_cached_recirculate()
5780 zone_depot_insert_head_full(&zone->z_recirc, tmp); in zfree_cached_recirculate()
5782 zone_depot_insert_tail_full(&zone->z_recirc, tmp); in zfree_cached_recirculate()
6586 zone_depot_move_empty(&zone->z_recirc, &cache->zc_depot, in zalloc_cached_depot_recirculate()
6597 seq = zone_depot_move_full(&zone->z_recirc, &cache->zc_depot, in zalloc_cached_depot_recirculate()
6603 if (n > zone->z_recirc.zd_full) { in zalloc_cached_depot_recirculate()
6604 n = zone->z_recirc.zd_full; in zalloc_cached_depot_recirculate()
6607 if (n && zone_depot_poll(&zone->z_recirc, smr)) { in zalloc_cached_depot_recirculate()
6608 zone_depot_move_full(&cache->zc_depot, &zone->z_recirc, in zalloc_cached_depot_recirculate()
6640 if (zone_depot_poll(&zone->z_recirc, zone_cache_smr(cache))) { in zalloc_cached_recirculate()
6641 mag = zone_depot_pop_head_full(&zone->z_recirc, zone); in zalloc_cached_recirculate()
6646 zone_depot_insert_head_empty(&zone->z_recirc, mag); in zalloc_cached_recirculate()
6685 } else if (zone->z_recirc.zd_full) { in zalloc_cached_prime()
7527 *zd = z->z_recirc; in zone_reclaim_recirc_drain()
7531 zone_depot_init(&z->z_recirc); in zone_reclaim_recirc_drain()
7551 assert(count <= z->z_recirc.zd_empty); in zone_reclaim_recirc_trim()
7559 zone_depot_move_empty(zd, &z->z_recirc, count, NULL); in zone_reclaim_recirc_trim()
7566 assert(count <= z->z_recirc.zd_full); in zone_reclaim_recirc_trim()
7573 zone_depot_move_full(zd, &z->z_recirc, count, NULL); in zone_reclaim_recirc_trim()
7957 z->z_recirc_empty_min = z->z_recirc.zd_empty; in compute_zone_working_set_size()
7966 z->z_recirc_full_min = z->z_recirc.zd_full; in compute_zone_working_set_size()
9037 zone_depot_init(&z->z_recirc); in zone_init_defaults()