Lines Matching full:zone
93 * Zone descriptor.
96 /* For listing the zone depending on its state */
99 /* Device containing this zone */
102 /* Zone type and state */
105 /* Zone activation reference count */
108 /* Zone id */
111 /* Zone write pointer block (relative to the zone start block) */
114 /* Zone weight (number of valid blocks in the zone) */
117 /* The chunk that the zone maps */
121 * For a sequential data zone, pointer to the random zone
123 * For a buffer zone, this points back to the data zone.
129 * Zone flags.
132 /* Zone write type */
137 /* Zone critical condition */
141 /* How the zone is being used */
147 /* Zone internal state */
154 * Zone data accessors.
205 sector_t dmz_start_sect(struct dmz_metadata *zmd, struct dm_zone *zone);
206 sector_t dmz_start_block(struct dmz_metadata *zmd, struct dm_zone *zone);
219 void dmz_free_zone(struct dmz_metadata *zmd, struct dm_zone *zone);
221 void dmz_map_zone(struct dmz_metadata *zmd, struct dm_zone *zone,
223 void dmz_unmap_zone(struct dmz_metadata *zmd, struct dm_zone *zone);
236 * Activate a zone (increment its reference count).
238 static inline void dmz_activate_zone(struct dm_zone *zone) in dmz_activate_zone() argument
240 atomic_inc(&zone->refcount); in dmz_activate_zone()
243 int dmz_lock_zone_reclaim(struct dm_zone *zone);
244 void dmz_unlock_zone_reclaim(struct dm_zone *zone);
250 void dmz_put_chunk_mapping(struct dmz_metadata *zmd, struct dm_zone *zone);
254 int dmz_validate_blocks(struct dmz_metadata *zmd, struct dm_zone *zone,
256 int dmz_invalidate_blocks(struct dmz_metadata *zmd, struct dm_zone *zone,
258 int dmz_block_valid(struct dmz_metadata *zmd, struct dm_zone *zone,
260 int dmz_first_valid_block(struct dmz_metadata *zmd, struct dm_zone *zone,
284 * Deactivate a zone. This decrement the zone reference counter
285 * indicating that all BIOs to the zone have completed when the count is 0.
287 static inline void dmz_deactivate_zone(struct dm_zone *zone) in dmz_deactivate_zone() argument
289 dmz_reclaim_bio_acc(zone->dev->reclaim); in dmz_deactivate_zone()
290 atomic_dec(&zone->refcount); in dmz_deactivate_zone()
294 * Test if a zone is active, that is, has a refcount > 0.
296 static inline bool dmz_is_active(struct dm_zone *zone) in dmz_is_active() argument
298 return atomic_read(&zone->refcount); in dmz_is_active()