Lines Matching refs:hash_zone
17 * Hash_locks are assigned to hash_zones by computing a modulus on the hash itself. Each hash_zone
24 * an asynchronous operation. All state transitions are performed on the thread of the hash_zone
89 * each hash_zone maintains a pool of dedupe_contexts which each contain a uds_request along with a
93 * its hash_zone's pool. If one is available, that context is prepared, associated with the
99 * state and returned to the hash_zone's available list.
101 * The first time an index query is launched from a given hash_zone, a timer is started. When the
102 * timer fires, the hash_zone's completion is enqueued to run in the hash_zone where the zone's
299 struct hash_zone zones[];
309 static inline struct hash_zone *as_hash_zone(struct vdo_completion *completion)
312 return container_of(completion, struct hash_zone, completion);
321 static inline void assert_in_hash_zone(struct hash_zone *zone, const char *name)
332 static inline bool change_timer_state(struct hash_zone *zone, int old, int new)
342 static void return_hash_lock_to_pool(struct hash_zone *zone, struct hash_lock *lock)
441 VDO_ASSERT_LOG_ONLY(data_vio->hash_zone != NULL,
718 struct hash_zone *zone = context->zone;
863 static int __must_check acquire_lock(struct hash_zone *zone,
946 result = acquire_lock(new_agent->hash_zone, &new_agent->record_name, old_lock,
1089 increment_stat(&agent->hash_zone->statistics.dedupe_advice_valid);
1091 increment_stat(&agent->hash_zone->statistics.dedupe_advice_stale);
1237 increment_stat(&agent->hash_zone->statistics.dedupe_advice_stale);
1789 struct hash_zone *zone;
1797 zone = candidate->hash_zone;
1849 result = acquire_lock(data_vio->hash_zone, &data_vio->record_name, NULL, &lock);
1913 struct hash_zone *zone = data_vio->hash_zone;
2253 static void check_for_drain_complete(struct hash_zone *zone)
2294 struct hash_zone *zone = as_hash_zone(completion);
2339 struct hash_zone *zone = from_timer(zone, t, timer);
2351 struct hash_zone *zone = &zones->zones[zone_number];
2418 result = vdo_allocate_extended(struct hash_zones, zone_count, struct hash_zone,
2474 struct hash_zone *zone = &zones->zones[i];
2530 check_for_drain_complete(container_of(state, struct hash_zone, state));
2612 struct hash_zone *zone = &(((struct hash_zones *) context)->zones[zone_number]);
2638 static void get_hash_zone_statistics(const struct hash_zone *zone,
2712 struct hash_zone *vdo_select_hash_zone(struct hash_zones *zones,
2780 static void dump_hash_zone(const struct hash_zone *zone)
2785 vdo_log_info("struct hash_zone %u: NULL map", zone->zone_number);
2789 vdo_log_info("struct hash_zone %u: mapSize=%zu",
2856 * acquire_context() - Acquire a dedupe context from a hash_zone if any are available.
2861 static struct dedupe_context * __must_check acquire_context(struct hash_zone *zone)
2909 struct hash_zone *zone = data_vio->hash_zone;