Searched refs:zmd (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.4/drivers/md/ |
D | dm-zoned-metadata.c | 189 unsigned int dmz_id(struct dmz_metadata *zmd, struct dm_zone *zone) in dmz_id() argument 191 return ((unsigned int)(zone - zmd->zones)); in dmz_id() 194 sector_t dmz_start_sect(struct dmz_metadata *zmd, struct dm_zone *zone) in dmz_start_sect() argument 196 return (sector_t)dmz_id(zmd, zone) << zmd->dev->zone_nr_sectors_shift; in dmz_start_sect() 199 sector_t dmz_start_block(struct dmz_metadata *zmd, struct dm_zone *zone) in dmz_start_block() argument 201 return (sector_t)dmz_id(zmd, zone) << zmd->dev->zone_nr_blocks_shift; in dmz_start_block() 204 unsigned int dmz_nr_chunks(struct dmz_metadata *zmd) in dmz_nr_chunks() argument 206 return zmd->nr_chunks; in dmz_nr_chunks() 209 unsigned int dmz_nr_rnd_zones(struct dmz_metadata *zmd) in dmz_nr_rnd_zones() argument 211 return zmd->nr_rnd; in dmz_nr_rnd_zones() [all …]
|
D | dm-zoned-reclaim.c | 61 struct dmz_metadata *zmd = zrc->metadata; in dmz_reclaim_align_wp() local 78 dmz_start_sect(zmd, zone) + dmz_blk2sect(wp_block), in dmz_reclaim_align_wp() 83 dmz_id(zmd, zone), (unsigned long long)wp_block, in dmz_reclaim_align_wp() 117 struct dmz_metadata *zmd = zrc->metadata; in dmz_reclaim_copy() local 131 src_zone_block = dmz_start_block(zmd, src_zone); in dmz_reclaim_copy() 132 dst_zone_block = dmz_start_block(zmd, dst_zone); in dmz_reclaim_copy() 142 ret = dmz_first_valid_block(zmd, src_zone, &block); in dmz_reclaim_copy() 193 struct dmz_metadata *zmd = zrc->metadata; in dmz_reclaim_buf() local 198 dzone->chunk, dmz_id(zmd, bzone), dmz_weight(bzone), in dmz_reclaim_buf() 199 dmz_id(zmd, dzone), dmz_weight(dzone)); in dmz_reclaim_buf() [all …]
|
D | dm-zoned.h | 166 int dmz_ctr_metadata(struct dmz_dev *dev, struct dmz_metadata **zmd); 167 void dmz_dtr_metadata(struct dmz_metadata *zmd); 168 int dmz_resume_metadata(struct dmz_metadata *zmd); 170 void dmz_lock_map(struct dmz_metadata *zmd); 171 void dmz_unlock_map(struct dmz_metadata *zmd); 172 void dmz_lock_metadata(struct dmz_metadata *zmd); 173 void dmz_unlock_metadata(struct dmz_metadata *zmd); 174 void dmz_lock_flush(struct dmz_metadata *zmd); 175 void dmz_unlock_flush(struct dmz_metadata *zmd); 176 int dmz_flush_metadata(struct dmz_metadata *zmd); [all …]
|
D | dm-zoned-target.c | 242 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_direct_write() local 258 ret = dmz_validate_blocks(zmd, zone, chunk_block, nr_blocks); in dmz_handle_direct_write() 260 ret = dmz_invalidate_blocks(zmd, bzone, chunk_block, nr_blocks); in dmz_handle_direct_write() 275 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_buffered_write() local 280 bzone = dmz_get_chunk_buffer(zmd, zone); in dmz_handle_buffered_write() 296 ret = dmz_validate_blocks(zmd, bzone, chunk_block, nr_blocks); in dmz_handle_buffered_write() 298 ret = dmz_invalidate_blocks(zmd, zone, chunk_block, nr_blocks); in dmz_handle_buffered_write() 343 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_discard() local 358 dmz_id(zmd, zone), in dmz_handle_discard() 366 ret = dmz_invalidate_blocks(zmd, zone, chunk_block, nr_blocks); in dmz_handle_discard() [all …]
|