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.
206 sector_t dmz_start_sect(struct dmz_metadata *zmd, struct dm_zone *zone);
207 sector_t dmz_start_block(struct dmz_metadata *zmd, struct dm_zone *zone);
220 void dmz_free_zone(struct dmz_metadata *zmd, struct dm_zone *zone);
222 void dmz_map_zone(struct dmz_metadata *zmd, struct dm_zone *zone,
224 void dmz_unmap_zone(struct dmz_metadata *zmd, struct dm_zone *zone);
238 * Activate a zone (increment its reference count).
240 static inline void dmz_activate_zone(struct dm_zone *zone) in dmz_activate_zone() argument
242 atomic_inc(&zone->refcount); in dmz_activate_zone()
245 int dmz_lock_zone_reclaim(struct dm_zone *zone);
246 void dmz_unlock_zone_reclaim(struct dm_zone *zone);
252 void dmz_put_chunk_mapping(struct dmz_metadata *zmd, struct dm_zone *zone);
256 int dmz_validate_blocks(struct dmz_metadata *zmd, struct dm_zone *zone,
258 int dmz_invalidate_blocks(struct dmz_metadata *zmd, struct dm_zone *zone,
260 int dmz_block_valid(struct dmz_metadata *zmd, struct dm_zone *zone,
262 int dmz_first_valid_block(struct dmz_metadata *zmd, struct dm_zone *zone,
286 * Deactivate a zone. This decrement the zone reference counter
287 * indicating that all BIOs to the zone have completed when the count is 0.
289 static inline void dmz_deactivate_zone(struct dm_zone *zone) in dmz_deactivate_zone() argument
291 dmz_reclaim_bio_acc(zone->dev->reclaim); in dmz_deactivate_zone()
292 atomic_dec(&zone->refcount); in dmz_deactivate_zone()
296 * Test if a zone is active, that is, has a refcount > 0.
298 static inline bool dmz_is_active(struct dm_zone *zone) in dmz_is_active() argument
300 return atomic_read(&zone->refcount); in dmz_is_active()