Lines Matching full:zone
94 * Zone descriptor.
97 /* For listing the zone depending on its state */
100 /* Device containing this zone */
103 /* Zone type and state */
106 /* Zone activation reference count */
109 /* Zone id */
112 /* Zone write pointer block (relative to the zone start block) */
115 /* Zone weight (number of valid blocks in the zone) */
118 /* The chunk that the zone maps */
122 * For a sequential data zone, pointer to the random zone
124 * For a buffer zone, this points back to the data zone.
130 * Zone flags.
133 /* Zone write type */
138 /* Zone critical condition */
142 /* How the zone is being used */
148 /* Zone internal state */
155 * Zone data accessors.
207 sector_t dmz_start_sect(struct dmz_metadata *zmd, struct dm_zone *zone);
208 sector_t dmz_start_block(struct dmz_metadata *zmd, struct dm_zone *zone);
221 void dmz_free_zone(struct dmz_metadata *zmd, struct dm_zone *zone);
223 void dmz_map_zone(struct dmz_metadata *zmd, struct dm_zone *zone,
225 void dmz_unmap_zone(struct dmz_metadata *zmd, struct dm_zone *zone);
239 * Activate a zone (increment its reference count).
241 static inline void dmz_activate_zone(struct dm_zone *zone) in dmz_activate_zone() argument
243 atomic_inc(&zone->refcount); in dmz_activate_zone()
246 int dmz_lock_zone_reclaim(struct dm_zone *zone);
247 void dmz_unlock_zone_reclaim(struct dm_zone *zone);
253 void dmz_put_chunk_mapping(struct dmz_metadata *zmd, struct dm_zone *zone);
257 int dmz_validate_blocks(struct dmz_metadata *zmd, struct dm_zone *zone,
259 int dmz_invalidate_blocks(struct dmz_metadata *zmd, struct dm_zone *zone,
261 int dmz_block_valid(struct dmz_metadata *zmd, struct dm_zone *zone,
263 int dmz_first_valid_block(struct dmz_metadata *zmd, struct dm_zone *zone,
287 * Deactivate a zone. This decrement the zone reference counter
288 * indicating that all BIOs to the zone have completed when the count is 0.
290 static inline void dmz_deactivate_zone(struct dm_zone *zone) in dmz_deactivate_zone() argument
292 dmz_reclaim_bio_acc(zone->dev->reclaim); in dmz_deactivate_zone()
293 atomic_dec(&zone->refcount); in dmz_deactivate_zone()
297 * Test if a zone is active, that is, has a refcount > 0.
299 static inline bool dmz_is_active(struct dm_zone *zone) in dmz_is_active() argument
301 return atomic_read(&zone->refcount); in dmz_is_active()