Lines Matching defs:zone

96 	/* For listing the zone depending on its state */
99 /* Device containing this zone */
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.
141 /* How the zone is being used */
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)
242 atomic_inc(&zone->refcount);
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)
291 dmz_reclaim_bio_acc(zone->dev->reclaim);
292 atomic_dec(&zone->refcount);
296 * Test if a zone is active, that is, has a refcount > 0.
298 static inline bool dmz_is_active(struct dm_zone *zone)
300 return atomic_read(&zone->refcount);