Lines Matching refs:zmd
83 #define dmz_bio_chunk(zmd, bio) ((bio)->bi_iter.bi_sector >> \ argument
84 dmz_zone_nr_sectors_shift(zmd))
85 #define dmz_chunk_block(zmd, b) ((b) & (dmz_zone_nr_blocks(zmd) - 1)) argument
193 struct dmz_metadata **zmd, const char *devname);
194 void dmz_dtr_metadata(struct dmz_metadata *zmd);
195 int dmz_resume_metadata(struct dmz_metadata *zmd);
197 void dmz_lock_map(struct dmz_metadata *zmd);
198 void dmz_unlock_map(struct dmz_metadata *zmd);
199 void dmz_lock_metadata(struct dmz_metadata *zmd);
200 void dmz_unlock_metadata(struct dmz_metadata *zmd);
201 void dmz_lock_flush(struct dmz_metadata *zmd);
202 void dmz_unlock_flush(struct dmz_metadata *zmd);
203 int dmz_flush_metadata(struct dmz_metadata *zmd);
204 const char *dmz_metadata_label(struct dmz_metadata *zmd);
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);
208 unsigned int dmz_nr_chunks(struct dmz_metadata *zmd);
210 bool dmz_check_dev(struct dmz_metadata *zmd);
211 bool dmz_dev_is_dying(struct dmz_metadata *zmd);
218 struct dm_zone *dmz_alloc_zone(struct dmz_metadata *zmd,
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);
225 unsigned int dmz_nr_zones(struct dmz_metadata *zmd);
226 unsigned int dmz_nr_cache_zones(struct dmz_metadata *zmd);
227 unsigned int dmz_nr_unmap_cache_zones(struct dmz_metadata *zmd);
228 unsigned int dmz_nr_rnd_zones(struct dmz_metadata *zmd, int idx);
229 unsigned int dmz_nr_unmap_rnd_zones(struct dmz_metadata *zmd, int idx);
230 unsigned int dmz_nr_seq_zones(struct dmz_metadata *zmd, int idx);
231 unsigned int dmz_nr_unmap_seq_zones(struct dmz_metadata *zmd, int idx);
232 unsigned int dmz_zone_nr_blocks(struct dmz_metadata *zmd);
233 unsigned int dmz_zone_nr_blocks_shift(struct dmz_metadata *zmd);
234 unsigned int dmz_zone_nr_sectors(struct dmz_metadata *zmd);
235 unsigned int dmz_zone_nr_sectors_shift(struct dmz_metadata *zmd);
247 struct dm_zone *dmz_get_zone_for_reclaim(struct dmz_metadata *zmd,
250 struct dm_zone *dmz_get_chunk_mapping(struct dmz_metadata *zmd,
252 void dmz_put_chunk_mapping(struct dmz_metadata *zmd, struct dm_zone *zone);
253 struct dm_zone *dmz_get_chunk_buffer(struct dmz_metadata *zmd,
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,
264 int dmz_copy_valid_blocks(struct dmz_metadata *zmd, struct dm_zone *from_zone,
266 int dmz_merge_valid_blocks(struct dmz_metadata *zmd, struct dm_zone *from_zone,
272 int dmz_ctr_reclaim(struct dmz_metadata *zmd, struct dmz_reclaim **zrc, int idx);